diff --git a/docker-compose.build.yml b/docker-compose.build.yml index 27d0dbc..b128cb6 100644 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -12,12 +12,12 @@ services: dockerfile: java/Dockerfile.build volumes: - ./java:/java - build_js: - build: - context: . - dockerfile: js/Dockerfile.build - volumes: - - ./js:/js +# build_js: +# build: +# context: . +# dockerfile: js/Dockerfile.build +# volumes: +# - ./js:/js build_python: build: context: . @@ -35,4 +35,4 @@ services: context: . dockerfile: r/Dockerfile.build volumes: - - ./r:/r \ No newline at end of file + - ./r:/r diff --git a/docker-compose.generate.yml b/docker-compose.generate.yml index 6562b30..21d98dc 100644 --- a/docker-compose.generate.yml +++ b/docker-compose.generate.yml @@ -7,13 +7,13 @@ services: volumes: - ${SCHEMA}:/schema - ./dotnet:/dotnet - generate_js: - build: - context: . - dockerfile: js/Dockerfile.generate - volumes: - - ${SCHEMA}:/schema - - ./js:/js +# generate_js: +# build: +# context: . +# dockerfile: js/Dockerfile.generate +# volumes: +# - ${SCHEMA}:/schema +# - ./js:/js generate_python: build: context: . @@ -41,4 +41,4 @@ services: dockerfile: go/Dockerfile.generate volumes: - ${SCHEMA}:/schema - - ./go:/golang \ No newline at end of file + - ./go:/golang diff --git a/dotnet/CI/generate-sdk.sh b/dotnet/CI/generate-sdk.sh index ab9a789..ae8b6e1 100755 --- a/dotnet/CI/generate-sdk.sh +++ b/dotnet/CI/generate-sdk.sh @@ -10,6 +10,6 @@ rm -f $BASE_PATH/$PACKAGE_PATH/**/*.g.cs echo Removed old generated code PROTOFILES=$(find $SCHEMA_PATH/$PACKAGE_PATH -iname "*.proto") -protoc --proto_path $SCHEMA_PATH --csharp_out $BASE_PATH/$PACKAGE_PATH --csharp_opt=file_extension=.g.cs,base_namespace=FactSet.Protobuf.Stach.V2 $PROTOFILES +protoc --proto_path $SCHEMA_PATH --csharp_out $BASE_PATH/$PACKAGE_PATH --csharp_opt=file_extension=.g.cs,base_namespace=FactSet.Protobuf.Stach.V3 $PROTOFILES -echo Produced new generated code \ No newline at end of file +echo Produced new generated code diff --git a/dotnet/Schema/Schema.csproj b/dotnet/Schema/Schema.csproj index 35b9b04..6835310 100644 --- a/dotnet/Schema/Schema.csproj +++ b/dotnet/Schema/Schema.csproj @@ -2,14 +2,14 @@ netstandard1.0 - FactSet.Protobuf.Stach.V2 - FactSet.Protobuf.Stach.V2 + FactSet.Protobuf.Stach.V3 + FactSet.Protobuf.Stach.V3 Google Protocol buffer classes for FactSet STACH tabular format which represents complex multi-dimensional array of data. These classes help in the serialization and deserialization of STACH formatted data. See GitHub repository documentation for more information. true - FactSet.Protobuf.Stach.V2 + FactSet.Protobuf.Stach.V3 FactSet Research Systems, Inc. FactSet Research Systems, Inc - FactSet.Protobuf.Stach.V2 + FactSet.Protobuf.Stach.V3 1.0.0 Apache-2.0 https://github.com/factset/stachschema-sdks.git @@ -29,4 +29,4 @@ - \ No newline at end of file + diff --git a/dotnet/Schema/fds/protobuf/stach/Column.g.cs b/dotnet/Schema/fds/protobuf/stach/Column.g.cs new file mode 100644 index 0000000..0433764 --- /dev/null +++ b/dotnet/Schema/fds/protobuf/stach/Column.g.cs @@ -0,0 +1,216 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fds/protobuf/stach/v3/Column.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace FactSet.Protobuf.Stach.V3 { + + /// Holder for reflection information generated from fds/protobuf/stach/v3/Column.proto + public static partial class ColumnReflection { + + #region Descriptor + /// File descriptor for fds/protobuf/stach/v3/Column.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ColumnReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJmZHMvcHJvdG9idWYvc3RhY2gvdjMvQ29sdW1uLnByb3RvEhlmYWN0c2V0", + "LnByb3RvYnVmLnN0YWNoLnYzGihmZHMvcHJvdG9idWYvc3RhY2gvdjMvTWV0", + "YWRhdGFJdGVtLnByb3RvItEBCgZDb2x1bW4SFwoPY29udGV4dHVhbF90eXBl", + "GAEgASgJEk4KD2N1c3RvbV9tZXRhZGF0YRhkIAMoCzI1LmZhY3RzZXQucHJv", + "dG9idWYuc3RhY2gudjMuQ29sdW1uLkN1c3RvbU1ldGFkYXRhRW50cnkaXgoT", + "Q3VzdG9tTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSNgoFdmFsdWUYAiAB", + "KAsyJy5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzLk1ldGFkYXRhSXRlbToC", + "OAFChgEKHWNvbS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzQgtDb2x1bW5Q", + "cm90b1o8Z2l0aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3MvZ28v", + "ZmRzL3Byb3RvYnVmL3N0YWNoL3YzqgIZRmFjdFNldC5Qcm90b2J1Zi5TdGFj", + "aC5WM2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V3.MetadataItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Column), global::FactSet.Protobuf.Stach.V3.Column.Parser, new[]{ "ContextualType", "CustomMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + /// + /// + ///A set of metadata for a table column. + /// + public sealed partial class Column : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Column()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.ColumnReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Column() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Column(Column other) : this() { + contextualType_ = other.contextualType_; + customMetadata_ = other.customMetadata_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Column Clone() { + return new Column(this); + } + + /// Field number for the "contextual_type" field. + public const int ContextualTypeFieldNumber = 1; + private string contextualType_ = ""; + /// + /// + ///The type that defines a higher level contextual type. + ///E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message). + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ContextualType { + get { return contextualType_; } + set { + contextualType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "custom_metadata" field. + public const int CustomMetadataFieldNumber = 100; + private static readonly pbc::MapField.Codec _map_customMetadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V3.MetadataItem.Parser), 802); + private readonly pbc::MapField customMetadata_ = new pbc::MapField(); + /// + /// + ///The custom metadata. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField CustomMetadata { + get { return customMetadata_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Column other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ContextualType != other.ContextualType) return false; + if (!CustomMetadata.Equals(other.CustomMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ContextualType.Length != 0) hash ^= ContextualType.GetHashCode(); + hash ^= CustomMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ContextualType.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ContextualType); + } + customMetadata_.WriteTo(output, _map_customMetadata_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ContextualType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContextualType); + } + size += customMetadata_.CalculateSize(_map_customMetadata_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Column other) { + if (other == null) { + return; + } + if (other.ContextualType.Length != 0) { + ContextualType = other.ContextualType; + } + customMetadata_.Add(other.customMetadata_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ContextualType = input.ReadString(); + break; + } + case 802: { + customMetadata_.AddEntriesFrom(input, _map_customMetadata_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/MetadataItem.g.cs b/dotnet/Schema/fds/protobuf/stach/MetadataItem.g.cs similarity index 51% rename from dotnet/Schema/fds/protobuf/stach/Table/MetadataItem.g.cs rename to dotnet/Schema/fds/protobuf/stach/MetadataItem.g.cs index 3e10c8a..77b4b2f 100644 --- a/dotnet/Schema/fds/protobuf/stach/Table/MetadataItem.g.cs +++ b/dotnet/Schema/fds/protobuf/stach/MetadataItem.g.cs @@ -1,6 +1,6 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/MetadataItem.proto +// source: fds/protobuf/stach/v3/MetadataItem.proto // #pragma warning disable 1591, 0612, 3021 #region Designer generated code @@ -9,13 +9,13 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { +namespace FactSet.Protobuf.Stach.V3 { - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/MetadataItem.proto + /// Holder for reflection information generated from fds/protobuf/stach/v3/MetadataItem.proto public static partial class MetadataItemReflection { #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/MetadataItem.proto + /// File descriptor for fds/protobuf/stach/v3/MetadataItem.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } @@ -24,21 +24,18 @@ public static partial class MetadataItemReflection { static MetadataItemReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Ci5mZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvTWV0YWRhdGFJdGVtLnBy", - "b3RvEh9mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlGhxnb29nbGUv", - "cHJvdG9idWYvc3RydWN0LnByb3RvGitmZHMvcHJvdG9idWYvc3RhY2gvdjIv", - "dGFibGUvUmVmZXJlbmNlLnByb3RvIoABCgxNZXRhZGF0YUl0ZW0SJwoFdmFs", - "dWUYASABKAsyFi5nb29nbGUucHJvdG9idWYuVmFsdWVIABI/CglyZWZlcmVu", - "Y2UYAiABKAsyKi5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLlJl", - "ZmVyZW5jZUgAQgYKBGRhdGFCngEKI2NvbS5mYWN0c2V0LnByb3RvYnVmLnN0", - "YWNoLnYyLnRhYmxlQhFNZXRhZGF0YUl0ZW1Qcm90b1pCZ2l0aHViLmNvbS9m", - "YWN0c2V0L3N0YWNoc2NoZW1hLXNka3MvZ28vZmRzL3Byb3RvYnVmL3N0YWNo", - "L3YyL3RhYmxlqgIfRmFjdFNldC5Qcm90b2J1Zi5TdGFjaC5WMi5UYWJsZWIG", - "cHJvdG8z")); + "CihmZHMvcHJvdG9idWYvc3RhY2gvdjMvTWV0YWRhdGFJdGVtLnByb3RvEhlm", + "YWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzGhxnb29nbGUvcHJvdG9idWYvc3Ry", + "dWN0LnByb3RvIk4KDE1ldGFkYXRhSXRlbRIXCg9jb250ZXh0dWFsX3R5cGUY", + "ASABKAkSJQoFdmFsdWUYAiABKAsyFi5nb29nbGUucHJvdG9idWYuVmFsdWVC", + "jAEKHWNvbS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzQhFNZXRhZGF0YUl0", + "ZW1Qcm90b1o8Z2l0aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3Mv", + "Z28vZmRzL3Byb3RvYnVmL3N0YWNoL3YzqgIZRmFjdFNldC5Qcm90b2J1Zi5T", + "dGFjaC5WM2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.ReferenceReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.MetadataItem), global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser, new[]{ "Value", "Reference" }, new[]{ "Data" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.MetadataItem), global::FactSet.Protobuf.Stach.V3.MetadataItem.Parser, new[]{ "ContextualType", "Value" }, null, null, null, null) })); } #endregion @@ -46,9 +43,8 @@ static MetadataItemReflection() { } #region Messages /// - /// A metadata item /// - /// Represents data to describe the table or parts of the table + ///A custom metadata item. /// public sealed partial class MetadataItem : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataItem()); @@ -58,7 +54,7 @@ public sealed partial class MetadataItem : pb::IMessage { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.MetadataItemReflection.Descriptor.MessageTypes[0]; } + get { return global::FactSet.Protobuf.Stach.V3.MetadataItemReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -75,15 +71,8 @@ public MetadataItem() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MetadataItem(MetadataItem other) : this() { - switch (other.DataCase) { - case DataOneofCase.Value: - Value = other.Value.Clone(); - break; - case DataOneofCase.Reference: - Reference = other.Reference.Clone(); - break; - } - + contextualType_ = other.contextualType_; + value_ = other.value_ != null ? other.value_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -92,53 +81,39 @@ public MetadataItem Clone() { return new MetadataItem(this); } - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; + /// Field number for the "contextual_type" field. + public const int ContextualTypeFieldNumber = 1; + private string contextualType_ = ""; /// - /// The value + /// + ///The higher level contextual type. + ///E.g. 'email', or 'id32'. + ///Required. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Google.Protobuf.WellKnownTypes.Value Value { - get { return dataCase_ == DataOneofCase.Value ? (global::Google.Protobuf.WellKnownTypes.Value) data_ : null; } + public string ContextualType { + get { return contextualType_; } set { - data_ = value; - dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Value; + contextualType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "reference" field. - public const int ReferenceFieldNumber = 2; + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Value value_; /// - /// The table reference + /// + ///The value. + ///Required. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.Reference Reference { - get { return dataCase_ == DataOneofCase.Reference ? (global::FactSet.Protobuf.Stach.V2.Table.Reference) data_ : null; } + public global::Google.Protobuf.WellKnownTypes.Value Value { + get { return value_; } set { - data_ = value; - dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Reference; + value_ = value; } } - private object data_; - /// Enum of possible cases for the "data" oneof. - public enum DataOneofCase { - None = 0, - Value = 1, - Reference = 2, - } - private DataOneofCase dataCase_ = DataOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DataOneofCase DataCase { - get { return dataCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void ClearData() { - dataCase_ = DataOneofCase.None; - data_ = null; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MetadataItem); @@ -152,18 +127,16 @@ public bool Equals(MetadataItem other) { if (ReferenceEquals(other, this)) { return true; } + if (ContextualType != other.ContextualType) return false; if (!object.Equals(Value, other.Value)) return false; - if (!object.Equals(Reference, other.Reference)) return false; - if (DataCase != other.DataCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (dataCase_ == DataOneofCase.Value) hash ^= Value.GetHashCode(); - if (dataCase_ == DataOneofCase.Reference) hash ^= Reference.GetHashCode(); - hash ^= (int) dataCase_; + if (ContextualType.Length != 0) hash ^= ContextualType.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -177,13 +150,13 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (dataCase_ == DataOneofCase.Value) { + if (ContextualType.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Value); + output.WriteString(ContextualType); } - if (dataCase_ == DataOneofCase.Reference) { + if (value_ != null) { output.WriteRawTag(18); - output.WriteMessage(Reference); + output.WriteMessage(Value); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -193,11 +166,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (dataCase_ == DataOneofCase.Value) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + if (ContextualType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContextualType); } - if (dataCase_ == DataOneofCase.Reference) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Reference); + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -210,21 +183,15 @@ public void MergeFrom(MetadataItem other) { if (other == null) { return; } - switch (other.DataCase) { - case DataOneofCase.Value: - if (Value == null) { - Value = new global::Google.Protobuf.WellKnownTypes.Value(); - } - Value.MergeFrom(other.Value); - break; - case DataOneofCase.Reference: - if (Reference == null) { - Reference = new global::FactSet.Protobuf.Stach.V2.Table.Reference(); - } - Reference.MergeFrom(other.Reference); - break; + if (other.ContextualType.Length != 0) { + ContextualType = other.ContextualType; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::Google.Protobuf.WellKnownTypes.Value(); + } + Value.MergeFrom(other.Value); } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -237,21 +204,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - global::Google.Protobuf.WellKnownTypes.Value subBuilder = new global::Google.Protobuf.WellKnownTypes.Value(); - if (dataCase_ == DataOneofCase.Value) { - subBuilder.MergeFrom(Value); - } - input.ReadMessage(subBuilder); - Value = subBuilder; + ContextualType = input.ReadString(); break; } case 18: { - global::FactSet.Protobuf.Stach.V2.Table.Reference subBuilder = new global::FactSet.Protobuf.Stach.V2.Table.Reference(); - if (dataCase_ == DataOneofCase.Reference) { - subBuilder.MergeFrom(Reference); + if (value_ == null) { + Value = new global::Google.Protobuf.WellKnownTypes.Value(); } - input.ReadMessage(subBuilder); - Reference = subBuilder; + input.ReadMessage(Value); break; } } diff --git a/dotnet/Schema/fds/protobuf/stach/Package.g.cs b/dotnet/Schema/fds/protobuf/stach/Package.g.cs deleted file mode 100644 index 446896d..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Package.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/Package.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2 { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/Package.proto - public static partial class PackageReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/Package.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static PackageReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiNmZHMvcHJvdG9idWYvc3RhY2gvdjIvUGFja2FnZS5wcm90bxIZZmFjdHNl", - "dC5wcm90b2J1Zi5zdGFjaC52MhonZmRzL3Byb3RvYnVmL3N0YWNoL3YyL3Rh", - "YmxlL1RhYmxlLnByb3RvIswBCgdQYWNrYWdlEg8KB3ZlcnNpb24YASABKAkS", - "GQoRcHJpbWFyeV90YWJsZV9pZHMYAiADKAkSPgoGdGFibGVzGAMgAygLMi4u", - "ZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi5QYWNrYWdlLlRhYmxlc0VudHJ5", - "GlUKC1RhYmxlc0VudHJ5EgsKA2tleRgBIAEoCRI1CgV2YWx1ZRgCIAEoCzIm", - "LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUuVGFibGU6AjgBQocB", - "Ch1jb20uZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52MkIMUGFja2FnZVByb3Rv", - "WjxnaXRodWIuY29tL2ZhY3RzZXQvc3RhY2hzY2hlbWEtc2Rrcy9nby9mZHMv", - "cHJvdG9idWYvc3RhY2gvdjKqAhlGYWN0U2V0LlByb3RvYnVmLlN0YWNoLlYy", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.TableReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Package), global::FactSet.Protobuf.Stach.V2.Package.Parser, new[]{ "Version", "PrimaryTableIds", "Tables" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) - })); - } - #endregion - - } - #region Messages - /// - /// A column organized package of tables - /// - public sealed partial class Package : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Package()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.PackageReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Package() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Package(Package other) : this() { - version_ = other.version_; - primaryTableIds_ = other.primaryTableIds_.Clone(); - tables_ = other.tables_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Package Clone() { - return new Package(this); - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 1; - private string version_ = ""; - /// - /// The version of the STACH schema. Formatted {major}.{minor} - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Version { - get { return version_; } - set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "primary_table_ids" field. - public const int PrimaryTableIdsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_primaryTableIds_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField primaryTableIds_ = new pbc::RepeatedField(); - /// - /// The array of primary table ids - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField PrimaryTableIds { - get { return primaryTableIds_; } - } - - /// Field number for the "tables" field. - public const int TablesFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_tables_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.Table.Parser), 26); - private readonly pbc::MapField tables_ = new pbc::MapField(); - /// - /// The map (key: table id) of all tables - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Tables { - get { return tables_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Package); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Package other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Version != other.Version) return false; - if(!primaryTableIds_.Equals(other.primaryTableIds_)) return false; - if (!Tables.Equals(other.Tables)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Version.Length != 0) hash ^= Version.GetHashCode(); - hash ^= primaryTableIds_.GetHashCode(); - hash ^= Tables.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Version.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Version); - } - primaryTableIds_.WriteTo(output, _repeated_primaryTableIds_codec); - tables_.WriteTo(output, _map_tables_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); - } - size += primaryTableIds_.CalculateSize(_repeated_primaryTableIds_codec); - size += tables_.CalculateSize(_map_tables_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Package other) { - if (other == null) { - return; - } - if (other.Version.Length != 0) { - Version = other.Version; - } - primaryTableIds_.Add(other.primaryTableIds_); - tables_.Add(other.tables_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Version = input.ReadString(); - break; - } - case 18: { - primaryTableIds_.AddEntriesFrom(input, _repeated_primaryTableIds_codec); - break; - } - case 26: { - tables_.AddEntriesFrom(input, _map_tables_codec); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/RowOrganized.g.cs b/dotnet/Schema/fds/protobuf/stach/RowOrganized.g.cs deleted file mode 100644 index b7bfff8..0000000 --- a/dotnet/Schema/fds/protobuf/stach/RowOrganized.g.cs +++ /dev/null @@ -1,1794 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/RowOrganized.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2 { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/RowOrganized.proto - public static partial class RowOrganizedReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/RowOrganized.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static RowOrganizedReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CihmZHMvcHJvdG9idWYvc3RhY2gvdjIvUm93T3JnYW5pemVkLnByb3RvEhlm", - "YWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyGi5mZHMvcHJvdG9idWYvc3RhY2gv", - "djIvdGFibGUvTWV0YWRhdGFJdGVtLnByb3RvGjBmZHMvcHJvdG9idWYvc3Rh", - "Y2gvdjIvdGFibGUvQ2VsbERlZmluaXRpb24ucHJvdG8aMmZkcy9wcm90b2J1", - "Zi9zdGFjaC92Mi90YWJsZS9Db2x1bW5EZWZpbml0aW9uLnByb3RvGhxnb29n", - "bGUvcHJvdG9idWYvc3RydWN0LnByb3RvIvMWChNSb3dPcmdhbml6ZWRQYWNr", - "YWdlEg8KB3ZlcnNpb24YASABKAkSSgoGdGFibGVzGAIgAygLMjouZmFjdHNl", - "dC5wcm90b2J1Zi5zdGFjaC52Mi5Sb3dPcmdhbml6ZWRQYWNrYWdlLlRhYmxl", - "c0VudHJ5GmMKC1RhYmxlc0VudHJ5EgsKA2tleRgBIAEoCRJDCgV2YWx1ZRgC", - "IAEoCzI0LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVk", - "UGFja2FnZS5UYWJsZToCOAEa/wEKBVRhYmxlElIKCmRlZmluaXRpb24YASAB", - "KAsyPi5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLlJvd09yZ2FuaXplZFBh", - "Y2thZ2UuVGFibGVEZWZpbml0aW9uEloKEmhlYWRlcnNfZGVmaW5pdGlvbhgC", - "IAEoCzI+LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVk", - "UGFja2FnZS5UYWJsZURlZmluaXRpb24SRgoEZGF0YRgDIAEoCzI4LmZhY3Rz", - "ZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVkUGFja2FnZS5UYWJs", - "ZURhdGEaVQoPVGFibGVEZWZpbml0aW9uEkIKB2NvbHVtbnMYASADKAsyMS5m", - "YWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLkNvbHVtbkRlZmluaXRp", - "b24a8wMKCVRhYmxlRGF0YRJACgRyb3dzGAEgAygLMjIuZmFjdHNldC5wcm90", - "b2J1Zi5zdGFjaC52Mi5Sb3dPcmdhbml6ZWRQYWNrYWdlLlJvdxJjCg50YWJs", - "ZV9tZXRhZGF0YRgCIAMoCzJLLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIu", - "Um93T3JnYW5pemVkUGFja2FnZS5UYWJsZURhdGEuVGFibGVNZXRhZGF0YUVu", - "dHJ5EmUKD2NvbHVtbl9tZXRhZGF0YRgDIAMoCzJMLmZhY3RzZXQucHJvdG9i", - "dWYuc3RhY2gudjIuUm93T3JnYW5pemVkUGFja2FnZS5UYWJsZURhdGEuQ29s", - "dW1uTWV0YWRhdGFFbnRyeRpjChJUYWJsZU1ldGFkYXRhRW50cnkSCwoDa2V5", - "GAEgASgJEjwKBXZhbHVlGAIgASgLMi0uZmFjdHNldC5wcm90b2J1Zi5zdGFj", - "aC52Mi50YWJsZS5NZXRhZGF0YUl0ZW06AjgBGnMKE0NvbHVtbk1ldGFkYXRh", - "RW50cnkSCwoDa2V5GAEgASgJEksKBXZhbHVlGAIgASgLMjwuZmFjdHNldC5w", - "cm90b2J1Zi5zdGFjaC52Mi5Sb3dPcmdhbml6ZWRQYWNrYWdlLk1hcE9mTWV0", - "YWRhdGE6AjgBGssGCgNSb3cSCgoCaWQYASABKAkSTAoIcm93X3R5cGUYAiAB", - "KA4yOi5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLlJvd09yZ2FuaXplZFBh", - "Y2thZ2UuUm93LlJvd1R5cGUSKwoFY2VsbHMYAyABKAsyGi5nb29nbGUucHJv", - "dG9idWYuTGlzdFZhbHVlSAASKQoGdmFsdWVzGAQgASgLMhcuZ29vZ2xlLnBy", - "b3RvYnVmLlN0cnVjdEgAElkKDGNlbGxfZGV0YWlscxgFIAMoCzJDLmZhY3Rz", - "ZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVkUGFja2FnZS5Sb3cu", - "Q2VsbERldGFpbHNFbnRyeRJmChNoZWFkZXJfY2VsbF9kZXRhaWxzGAYgAygL", - "MkkuZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi5Sb3dPcmdhbml6ZWRQYWNr", - "YWdlLlJvdy5IZWFkZXJDZWxsRGV0YWlsc0VudHJ5ElkKDHJvd19tZXRhZGF0", - "YRgHIAMoCzJDLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5p", - "emVkUGFja2FnZS5Sb3cuUm93TWV0YWRhdGFFbnRyeRptChBDZWxsRGV0YWls", - "c0VudHJ5EgsKA2tleRgBIAEoCRJICgV2YWx1ZRgCIAEoCzI5LmZhY3RzZXQu", - "cHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVkUGFja2FnZS5DZWxsRGV0", - "YWlsOgI4ARp5ChZIZWFkZXJDZWxsRGV0YWlsc0VudHJ5EgsKA2tleRgBIAEo", - "CRJOCgV2YWx1ZRgCIAEoCzI/LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIu", - "Um93T3JnYW5pemVkUGFja2FnZS5IZWFkZXJDZWxsRGV0YWlsOgI4ARphChBS", - "b3dNZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRI8CgV2YWx1ZRgCIAEoCzIt", - "LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUuTWV0YWRhdGFJdGVt", - "OgI4ASIfCgdSb3dUeXBlEggKBEJvZHkQABIKCgZIZWFkZXIQAUIGCgRraW5k", - "GrMCCgpDZWxsRGV0YWlsEhMKC2dyb3VwX2xldmVsGAEgASgFEkgKD2NlbGxf", - "ZGVmaW5pdGlvbhgCIAEoCzIvLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIu", - "dGFibGUuQ2VsbERlZmluaXRpb24SYgoNY2VsbF9tZXRhZGF0YRgDIAMoCzJL", - "LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVkUGFja2Fn", - "ZS5DZWxsRGV0YWlsLkNlbGxNZXRhZGF0YUVudHJ5GmIKEUNlbGxNZXRhZGF0", - "YUVudHJ5EgsKA2tleRgBIAEoCRI8CgV2YWx1ZRgCIAEoCzItLmZhY3RzZXQu", - "cHJvdG9idWYuc3RhY2gudjIudGFibGUuTWV0YWRhdGFJdGVtOgI4ARr/AwoQ", - "SGVhZGVyQ2VsbERldGFpbBIPCgdjb2xzcGFuGAEgASgFEg8KB3Jvd3NwYW4Y", - "AiABKAUSWwoGc291cmNlGAMgASgOMksuZmFjdHNldC5wcm90b2J1Zi5zdGFj", - "aC52Mi5Sb3dPcmdhbml6ZWRQYWNrYWdlLkhlYWRlckNlbGxEZXRhaWwuVGFi", - "bGVTb3VyY2USFAoMY29sdW1uX2luZGV4GAQgASgFEkgKD2NlbGxfZGVmaW5p", - "dGlvbhgFIAEoCzIvLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUu", - "Q2VsbERlZmluaXRpb24SaAoNY2VsbF9tZXRhZGF0YRgGIAMoCzJRLmZhY3Rz", - "ZXQucHJvdG9idWYuc3RhY2gudjIuUm93T3JnYW5pemVkUGFja2FnZS5IZWFk", - "ZXJDZWxsRGV0YWlsLkNlbGxNZXRhZGF0YUVudHJ5GmIKEUNlbGxNZXRhZGF0", - "YUVudHJ5EgsKA2tleRgBIAEoCRI8CgV2YWx1ZRgCIAEoCzItLmZhY3RzZXQu", - "cHJvdG9idWYuc3RhY2gudjIudGFibGUuTWV0YWRhdGFJdGVtOgI4ASI+CgtU", - "YWJsZVNvdXJjZRILCgdVTktOT1dOEAASCAoETk9ORRABEgsKB1BSSU1BUlkQ", - "AhILCgdIRUFERVJTEAMaxAEKDU1hcE9mTWV0YWRhdGESVgoFaXRlbXMYASAD", - "KAsyRy5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLlJvd09yZ2FuaXplZFBh", - "Y2thZ2UuTWFwT2ZNZXRhZGF0YS5JdGVtc0VudHJ5GlsKCkl0ZW1zRW50cnkS", - "CwoDa2V5GAEgASgJEjwKBXZhbHVlGAIgASgLMi0uZmFjdHNldC5wcm90b2J1", - "Zi5zdGFjaC52Mi50YWJsZS5NZXRhZGF0YUl0ZW06AjgBQowBCh1jb20uZmFj", - "dHNldC5wcm90b2J1Zi5zdGFjaC52MkIRUm93T3JnYW5pemVkUHJvdG9aPGdp", - "dGh1Yi5jb20vZmFjdHNldC9zdGFjaHNjaGVtYS1zZGtzL2dvL2Zkcy9wcm90", - "b2J1Zi9zdGFjaC92MqoCGUZhY3RTZXQuUHJvdG9idWYuU3RhY2guVjJiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.MetadataItemReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.CellDefinitionReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinitionReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Parser, new[]{ "Version", "Tables" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Table), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Table.Parser, new[]{ "Definition", "HeadersDefinition", "Data" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition.Parser, new[]{ "Columns" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableData), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableData.Parser, new[]{ "Rows", "TableMetadata", "ColumnMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Parser, new[]{ "Id", "RowType", "Cells", "Values", "CellDetails", "HeaderCellDetails", "RowMetadata" }, new[]{ "Kind" }, new[]{ typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.CellDetail), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.CellDetail.Parser, new[]{ "GroupLevel", "CellDefinition", "CellMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Parser, new[]{ "Colspan", "Rowspan", "Source", "ColumnIndex", "CellDefinition", "CellMetadata" }, null, new[]{ typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.MapOfMetadata), global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.MapOfMetadata.Parser, new[]{ "Items" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}) - })); - } - #endregion - - } - #region Messages - /// - /// A row organized package of tables - /// - public sealed partial class RowOrganizedPackage : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RowOrganizedPackage()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RowOrganizedPackage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RowOrganizedPackage(RowOrganizedPackage other) : this() { - version_ = other.version_; - tables_ = other.tables_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RowOrganizedPackage Clone() { - return new RowOrganizedPackage(this); - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 1; - private string version_ = ""; - /// - /// The version of the STACH schema. Formatted {major}.{minor} - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Version { - get { return version_; } - set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tables" field. - public const int TablesFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_tables_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Table.Parser), 18); - private readonly pbc::MapField tables_ = new pbc::MapField(); - /// - /// The map (key: table id) of all tables - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Tables { - get { return tables_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as RowOrganizedPackage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(RowOrganizedPackage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Version != other.Version) return false; - if (!Tables.Equals(other.Tables)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Version.Length != 0) hash ^= Version.GetHashCode(); - hash ^= Tables.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Version.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Version); - } - tables_.WriteTo(output, _map_tables_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); - } - size += tables_.CalculateSize(_map_tables_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(RowOrganizedPackage other) { - if (other == null) { - return; - } - if (other.Version.Length != 0) { - Version = other.Version; - } - tables_.Add(other.tables_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Version = input.ReadString(); - break; - } - case 18: { - tables_.AddEntriesFrom(input, _map_tables_codec); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the RowOrganizedPackage message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - /// - /// A row organized table - /// - public sealed partial class Table : pb::IMessage { - private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Table()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser
Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Table() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Table(Table other) : this() { - definition_ = other.definition_ != null ? other.definition_.Clone() : null; - headersDefinition_ = other.headersDefinition_ != null ? other.headersDefinition_.Clone() : null; - data_ = other.data_ != null ? other.data_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Table Clone() { - return new Table(this); - } - - /// Field number for the "definition" field. - public const int DefinitionFieldNumber = 1; - private global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition definition_; - /// - /// The definition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition Definition { - get { return definition_; } - set { - definition_ = value; - } - } - - /// Field number for the "headers_definition" field. - public const int HeadersDefinitionFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition headersDefinition_; - /// - /// The headers definition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition HeadersDefinition { - get { return headersDefinition_; } - set { - headersDefinition_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 3; - private global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableData data_; - /// - /// The data - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableData Data { - get { return data_; } - set { - data_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Table); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Table other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Definition, other.Definition)) return false; - if (!object.Equals(HeadersDefinition, other.HeadersDefinition)) return false; - if (!object.Equals(Data, other.Data)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (definition_ != null) hash ^= Definition.GetHashCode(); - if (headersDefinition_ != null) hash ^= HeadersDefinition.GetHashCode(); - if (data_ != null) hash ^= Data.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (definition_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Definition); - } - if (headersDefinition_ != null) { - output.WriteRawTag(18); - output.WriteMessage(HeadersDefinition); - } - if (data_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Data); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (definition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Definition); - } - if (headersDefinition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeadersDefinition); - } - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Table other) { - if (other == null) { - return; - } - if (other.definition_ != null) { - if (definition_ == null) { - Definition = new global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition(); - } - Definition.MergeFrom(other.Definition); - } - if (other.headersDefinition_ != null) { - if (headersDefinition_ == null) { - HeadersDefinition = new global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition(); - } - HeadersDefinition.MergeFrom(other.HeadersDefinition); - } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableData(); - } - Data.MergeFrom(other.Data); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (definition_ == null) { - Definition = new global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition(); - } - input.ReadMessage(Definition); - break; - } - case 18: { - if (headersDefinition_ == null) { - HeadersDefinition = new global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableDefinition(); - } - input.ReadMessage(HeadersDefinition); - break; - } - case 26: { - if (data_ == null) { - Data = new global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.TableData(); - } - input.ReadMessage(Data); - break; - } - } - } - } - - } - - /// - /// A table definition - /// - public sealed partial class TableDefinition : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TableDefinition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableDefinition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableDefinition(TableDefinition other) : this() { - columns_ = other.columns_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableDefinition Clone() { - return new TableDefinition(this); - } - - /// Field number for the "columns" field. - public const int ColumnsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_columns_codec - = pb::FieldCodec.ForMessage(10, global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinition.Parser); - private readonly pbc::RepeatedField columns_ = new pbc::RepeatedField(); - /// - /// The column definitions - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Columns { - get { return columns_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as TableDefinition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(TableDefinition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!columns_.Equals(other.columns_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= columns_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - columns_.WriteTo(output, _repeated_columns_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += columns_.CalculateSize(_repeated_columns_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(TableDefinition other) { - if (other == null) { - return; - } - columns_.Add(other.columns_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - columns_.AddEntriesFrom(input, _repeated_columns_codec); - break; - } - } - } - } - - } - - /// - /// A table data - /// - public sealed partial class TableData : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TableData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableData(TableData other) : this() { - rows_ = other.rows_.Clone(); - tableMetadata_ = other.tableMetadata_.Clone(); - columnMetadata_ = other.columnMetadata_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableData Clone() { - return new TableData(this); - } - - /// Field number for the "rows" field. - public const int RowsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_rows_codec - = pb::FieldCodec.ForMessage(10, global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Parser); - private readonly pbc::RepeatedField rows_ = new pbc::RepeatedField(); - /// - /// The rows - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Rows { - get { return rows_; } - } - - /// Field number for the "table_metadata" field. - public const int TableMetadataFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_tableMetadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser), 18); - private readonly pbc::MapField tableMetadata_ = new pbc::MapField(); - /// - /// The map (key: metadataitem id) of metadata at the table location - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField TableMetadata { - get { return tableMetadata_; } - } - - /// Field number for the "column_metadata" field. - public const int ColumnMetadataFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_columnMetadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.MapOfMetadata.Parser), 26); - private readonly pbc::MapField columnMetadata_ = new pbc::MapField(); - /// - /// The map (key: column id) of metadata at the column location - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField ColumnMetadata { - get { return columnMetadata_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as TableData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(TableData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!rows_.Equals(other.rows_)) return false; - if (!TableMetadata.Equals(other.TableMetadata)) return false; - if (!ColumnMetadata.Equals(other.ColumnMetadata)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= rows_.GetHashCode(); - hash ^= TableMetadata.GetHashCode(); - hash ^= ColumnMetadata.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - rows_.WriteTo(output, _repeated_rows_codec); - tableMetadata_.WriteTo(output, _map_tableMetadata_codec); - columnMetadata_.WriteTo(output, _map_columnMetadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += rows_.CalculateSize(_repeated_rows_codec); - size += tableMetadata_.CalculateSize(_map_tableMetadata_codec); - size += columnMetadata_.CalculateSize(_map_columnMetadata_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(TableData other) { - if (other == null) { - return; - } - rows_.Add(other.rows_); - tableMetadata_.Add(other.tableMetadata_); - columnMetadata_.Add(other.columnMetadata_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - rows_.AddEntriesFrom(input, _repeated_rows_codec); - break; - } - case 18: { - tableMetadata_.AddEntriesFrom(input, _map_tableMetadata_codec); - break; - } - case 26: { - columnMetadata_.AddEntriesFrom(input, _map_columnMetadata_codec); - break; - } - } - } - } - - } - - /// - /// A row - /// - public sealed partial class Row : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Row()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Row() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Row(Row other) : this() { - id_ = other.id_; - rowType_ = other.rowType_; - cellDetails_ = other.cellDetails_.Clone(); - headerCellDetails_ = other.headerCellDetails_.Clone(); - rowMetadata_ = other.rowMetadata_.Clone(); - switch (other.KindCase) { - case KindOneofCase.Cells: - Cells = other.Cells.Clone(); - break; - case KindOneofCase.Values: - Values = other.Values.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Row Clone() { - return new Row(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// The row id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "row_type" field. - public const int RowTypeFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType rowType_ = global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType.Body; - /// - /// The row type - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType RowType { - get { return rowType_; } - set { - rowType_ = value; - } - } - - /// Field number for the "cells" field. - public const int CellsFieldNumber = 3; - /// - /// The list of cell values - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Google.Protobuf.WellKnownTypes.ListValue Cells { - get { return kindCase_ == KindOneofCase.Cells ? (global::Google.Protobuf.WellKnownTypes.ListValue) kind_ : null; } - set { - kind_ = value; - kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Cells; - } - } - - /// Field number for the "values" field. - public const int ValuesFieldNumber = 4; - /// - /// The map of cell values - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Google.Protobuf.WellKnownTypes.Struct Values { - get { return kindCase_ == KindOneofCase.Values ? (global::Google.Protobuf.WellKnownTypes.Struct) kind_ : null; } - set { - kind_ = value; - kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Values; - } - } - - /// Field number for the "cell_details" field. - public const int CellDetailsFieldNumber = 5; - private static readonly pbc::MapField.Codec _map_cellDetails_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.CellDetail.Parser), 42); - private readonly pbc::MapField cellDetails_ = new pbc::MapField(); - /// - /// The details for a body row cell - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField CellDetails { - get { return cellDetails_; } - } - - /// Field number for the "header_cell_details" field. - public const int HeaderCellDetailsFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_headerCellDetails_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Parser), 50); - private readonly pbc::MapField headerCellDetails_ = new pbc::MapField(); - /// - /// The details for a header row cell - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField HeaderCellDetails { - get { return headerCellDetails_; } - } - - /// Field number for the "row_metadata" field. - public const int RowMetadataFieldNumber = 7; - private static readonly pbc::MapField.Codec _map_rowMetadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser), 58); - private readonly pbc::MapField rowMetadata_ = new pbc::MapField(); - /// - /// The map (key: metadataitem id) of metadata at the row location - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField RowMetadata { - get { return rowMetadata_; } - } - - private object kind_; - /// Enum of possible cases for the "kind" oneof. - public enum KindOneofCase { - None = 0, - Cells = 3, - Values = 4, - } - private KindOneofCase kindCase_ = KindOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public KindOneofCase KindCase { - get { return kindCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void ClearKind() { - kindCase_ = KindOneofCase.None; - kind_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Row other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (RowType != other.RowType) return false; - if (!object.Equals(Cells, other.Cells)) return false; - if (!object.Equals(Values, other.Values)) return false; - if (!CellDetails.Equals(other.CellDetails)) return false; - if (!HeaderCellDetails.Equals(other.HeaderCellDetails)) return false; - if (!RowMetadata.Equals(other.RowMetadata)) return false; - if (KindCase != other.KindCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (RowType != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType.Body) hash ^= RowType.GetHashCode(); - if (kindCase_ == KindOneofCase.Cells) hash ^= Cells.GetHashCode(); - if (kindCase_ == KindOneofCase.Values) hash ^= Values.GetHashCode(); - hash ^= CellDetails.GetHashCode(); - hash ^= HeaderCellDetails.GetHashCode(); - hash ^= RowMetadata.GetHashCode(); - hash ^= (int) kindCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (RowType != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType.Body) { - output.WriteRawTag(16); - output.WriteEnum((int) RowType); - } - if (kindCase_ == KindOneofCase.Cells) { - output.WriteRawTag(26); - output.WriteMessage(Cells); - } - if (kindCase_ == KindOneofCase.Values) { - output.WriteRawTag(34); - output.WriteMessage(Values); - } - cellDetails_.WriteTo(output, _map_cellDetails_codec); - headerCellDetails_.WriteTo(output, _map_headerCellDetails_codec); - rowMetadata_.WriteTo(output, _map_rowMetadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (RowType != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType.Body) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RowType); - } - if (kindCase_ == KindOneofCase.Cells) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cells); - } - if (kindCase_ == KindOneofCase.Values) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Values); - } - size += cellDetails_.CalculateSize(_map_cellDetails_codec); - size += headerCellDetails_.CalculateSize(_map_headerCellDetails_codec); - size += rowMetadata_.CalculateSize(_map_rowMetadata_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Row other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.RowType != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType.Body) { - RowType = other.RowType; - } - cellDetails_.Add(other.cellDetails_); - headerCellDetails_.Add(other.headerCellDetails_); - rowMetadata_.Add(other.rowMetadata_); - switch (other.KindCase) { - case KindOneofCase.Cells: - if (Cells == null) { - Cells = new global::Google.Protobuf.WellKnownTypes.ListValue(); - } - Cells.MergeFrom(other.Cells); - break; - case KindOneofCase.Values: - if (Values == null) { - Values = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - Values.MergeFrom(other.Values); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - RowType = (global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.Row.Types.RowType) input.ReadEnum(); - break; - } - case 26: { - global::Google.Protobuf.WellKnownTypes.ListValue subBuilder = new global::Google.Protobuf.WellKnownTypes.ListValue(); - if (kindCase_ == KindOneofCase.Cells) { - subBuilder.MergeFrom(Cells); - } - input.ReadMessage(subBuilder); - Cells = subBuilder; - break; - } - case 34: { - global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct(); - if (kindCase_ == KindOneofCase.Values) { - subBuilder.MergeFrom(Values); - } - input.ReadMessage(subBuilder); - Values = subBuilder; - break; - } - case 42: { - cellDetails_.AddEntriesFrom(input, _map_cellDetails_codec); - break; - } - case 50: { - headerCellDetails_.AddEntriesFrom(input, _map_headerCellDetails_codec); - break; - } - case 58: { - rowMetadata_.AddEntriesFrom(input, _map_rowMetadata_codec); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Row message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - /// - /// A type of row - /// - public enum RowType { - /// - /// A body row - /// - [pbr::OriginalName("Body")] Body = 0, - /// - /// A header row - /// - [pbr::OriginalName("Header")] Header = 1, - } - - } - #endregion - - } - - /// - /// A body row cell detail - /// - public sealed partial class CellDetail : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CellDetail()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellDetail() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellDetail(CellDetail other) : this() { - groupLevel_ = other.groupLevel_; - cellDefinition_ = other.cellDefinition_ != null ? other.cellDefinition_.Clone() : null; - cellMetadata_ = other.cellMetadata_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellDetail Clone() { - return new CellDetail(this); - } - - /// Field number for the "group_level" field. - public const int GroupLevelFieldNumber = 1; - private int groupLevel_; - /// - /// The group level - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int GroupLevel { - get { return groupLevel_; } - set { - groupLevel_ = value; - } - } - - /// Field number for the "cell_definition" field. - public const int CellDefinitionFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.Table.CellDefinition cellDefinition_; - /// - /// The definition of the cell; overrides the column definition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.CellDefinition CellDefinition { - get { return cellDefinition_; } - set { - cellDefinition_ = value; - } - } - - /// Field number for the "cell_metadata" field. - public const int CellMetadataFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_cellMetadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser), 26); - private readonly pbc::MapField cellMetadata_ = new pbc::MapField(); - /// - /// The map (key: metadataitem id) of metadata at the cell location - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField CellMetadata { - get { return cellMetadata_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as CellDetail); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CellDetail other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GroupLevel != other.GroupLevel) return false; - if (!object.Equals(CellDefinition, other.CellDefinition)) return false; - if (!CellMetadata.Equals(other.CellMetadata)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (GroupLevel != 0) hash ^= GroupLevel.GetHashCode(); - if (cellDefinition_ != null) hash ^= CellDefinition.GetHashCode(); - hash ^= CellMetadata.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (GroupLevel != 0) { - output.WriteRawTag(8); - output.WriteInt32(GroupLevel); - } - if (cellDefinition_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CellDefinition); - } - cellMetadata_.WriteTo(output, _map_cellMetadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (GroupLevel != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupLevel); - } - if (cellDefinition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CellDefinition); - } - size += cellMetadata_.CalculateSize(_map_cellMetadata_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CellDetail other) { - if (other == null) { - return; - } - if (other.GroupLevel != 0) { - GroupLevel = other.GroupLevel; - } - if (other.cellDefinition_ != null) { - if (cellDefinition_ == null) { - CellDefinition = new global::FactSet.Protobuf.Stach.V2.Table.CellDefinition(); - } - CellDefinition.MergeFrom(other.CellDefinition); - } - cellMetadata_.Add(other.cellMetadata_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - GroupLevel = input.ReadInt32(); - break; - } - case 18: { - if (cellDefinition_ == null) { - CellDefinition = new global::FactSet.Protobuf.Stach.V2.Table.CellDefinition(); - } - input.ReadMessage(CellDefinition); - break; - } - case 26: { - cellMetadata_.AddEntriesFrom(input, _map_cellMetadata_codec); - break; - } - } - } - } - - } - - /// - /// A header row cell detail - /// - public sealed partial class HeaderCellDetail : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeaderCellDetail()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public HeaderCellDetail() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public HeaderCellDetail(HeaderCellDetail other) : this() { - colspan_ = other.colspan_; - rowspan_ = other.rowspan_; - source_ = other.source_; - columnIndex_ = other.columnIndex_; - cellDefinition_ = other.cellDefinition_ != null ? other.cellDefinition_.Clone() : null; - cellMetadata_ = other.cellMetadata_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public HeaderCellDetail Clone() { - return new HeaderCellDetail(this); - } - - /// Field number for the "colspan" field. - public const int ColspanFieldNumber = 1; - private int colspan_; - /// - /// The column span - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Colspan { - get { return colspan_; } - set { - colspan_ = value; - } - } - - /// Field number for the "rowspan" field. - public const int RowspanFieldNumber = 2; - private int rowspan_; - /// - /// The row span - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Rowspan { - get { return rowspan_; } - set { - rowspan_ = value; - } - } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 3; - private global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource source_ = global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource.Unknown; - /// - /// The table where the row is sourced from - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource Source { - get { return source_; } - set { - source_ = value; - } - } - - /// Field number for the "column_index" field. - public const int ColumnIndexFieldNumber = 4; - private int columnIndex_; - /// - /// The column index; used to index into the `headers_definition.columns` array - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int ColumnIndex { - get { return columnIndex_; } - set { - columnIndex_ = value; - } - } - - /// Field number for the "cell_definition" field. - public const int CellDefinitionFieldNumber = 5; - private global::FactSet.Protobuf.Stach.V2.Table.CellDefinition cellDefinition_; - /// - /// The definition of the cell; overrides the column definition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.CellDefinition CellDefinition { - get { return cellDefinition_; } - set { - cellDefinition_ = value; - } - } - - /// Field number for the "cell_metadata" field. - public const int CellMetadataFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_cellMetadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser), 50); - private readonly pbc::MapField cellMetadata_ = new pbc::MapField(); - /// - /// The map (key: metadataitem id) of metadata at the cell location - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField CellMetadata { - get { return cellMetadata_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as HeaderCellDetail); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(HeaderCellDetail other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Colspan != other.Colspan) return false; - if (Rowspan != other.Rowspan) return false; - if (Source != other.Source) return false; - if (ColumnIndex != other.ColumnIndex) return false; - if (!object.Equals(CellDefinition, other.CellDefinition)) return false; - if (!CellMetadata.Equals(other.CellMetadata)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Colspan != 0) hash ^= Colspan.GetHashCode(); - if (Rowspan != 0) hash ^= Rowspan.GetHashCode(); - if (Source != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource.Unknown) hash ^= Source.GetHashCode(); - if (ColumnIndex != 0) hash ^= ColumnIndex.GetHashCode(); - if (cellDefinition_ != null) hash ^= CellDefinition.GetHashCode(); - hash ^= CellMetadata.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Colspan != 0) { - output.WriteRawTag(8); - output.WriteInt32(Colspan); - } - if (Rowspan != 0) { - output.WriteRawTag(16); - output.WriteInt32(Rowspan); - } - if (Source != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource.Unknown) { - output.WriteRawTag(24); - output.WriteEnum((int) Source); - } - if (ColumnIndex != 0) { - output.WriteRawTag(32); - output.WriteInt32(ColumnIndex); - } - if (cellDefinition_ != null) { - output.WriteRawTag(42); - output.WriteMessage(CellDefinition); - } - cellMetadata_.WriteTo(output, _map_cellMetadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Colspan != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Colspan); - } - if (Rowspan != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rowspan); - } - if (Source != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource.Unknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (ColumnIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColumnIndex); - } - if (cellDefinition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CellDefinition); - } - size += cellMetadata_.CalculateSize(_map_cellMetadata_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(HeaderCellDetail other) { - if (other == null) { - return; - } - if (other.Colspan != 0) { - Colspan = other.Colspan; - } - if (other.Rowspan != 0) { - Rowspan = other.Rowspan; - } - if (other.Source != global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource.Unknown) { - Source = other.Source; - } - if (other.ColumnIndex != 0) { - ColumnIndex = other.ColumnIndex; - } - if (other.cellDefinition_ != null) { - if (cellDefinition_ == null) { - CellDefinition = new global::FactSet.Protobuf.Stach.V2.Table.CellDefinition(); - } - CellDefinition.MergeFrom(other.CellDefinition); - } - cellMetadata_.Add(other.cellMetadata_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Colspan = input.ReadInt32(); - break; - } - case 16: { - Rowspan = input.ReadInt32(); - break; - } - case 24: { - Source = (global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Types.HeaderCellDetail.Types.TableSource) input.ReadEnum(); - break; - } - case 32: { - ColumnIndex = input.ReadInt32(); - break; - } - case 42: { - if (cellDefinition_ == null) { - CellDefinition = new global::FactSet.Protobuf.Stach.V2.Table.CellDefinition(); - } - input.ReadMessage(CellDefinition); - break; - } - case 50: { - cellMetadata_.AddEntriesFrom(input, _map_cellMetadata_codec); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the HeaderCellDetail message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - /// - /// A table where a row is sourced from - /// - public enum TableSource { - [pbr::OriginalName("UNKNOWN")] Unknown = 0, - [pbr::OriginalName("NONE")] None = 1, - [pbr::OriginalName("PRIMARY")] Primary = 2, - [pbr::OriginalName("HEADERS")] Headers = 3, - } - - } - #endregion - - } - - /// - /// A wrapper for a map of metadata items - /// - public sealed partial class MapOfMetadata : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapOfMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.RowOrganizedPackage.Descriptor.NestedTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MapOfMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MapOfMetadata(MapOfMetadata other) : this() { - items_ = other.items_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MapOfMetadata Clone() { - return new MapOfMetadata(this); - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_items_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser), 10); - private readonly pbc::MapField items_ = new pbc::MapField(); - /// - /// The map (key: metadataitem id) metadata - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Items { - get { return items_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MapOfMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MapOfMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!Items.Equals(other.Items)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= Items.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - items_.WriteTo(output, _map_items_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += items_.CalculateSize(_map_items_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MapOfMetadata other) { - if (other == null) { - return; - } - items_.Add(other.items_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - items_.AddEntriesFrom(input, _map_items_codec); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/RowOrganizedTable.g.cs b/dotnet/Schema/fds/protobuf/stach/RowOrganizedTable.g.cs new file mode 100644 index 0000000..9ed7146 --- /dev/null +++ b/dotnet/Schema/fds/protobuf/stach/RowOrganizedTable.g.cs @@ -0,0 +1,1000 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fds/protobuf/stach/v3/RowOrganizedTable.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace FactSet.Protobuf.Stach.V3 { + + /// Holder for reflection information generated from fds/protobuf/stach/v3/RowOrganizedTable.proto + public static partial class RowOrganizedTableReflection { + + #region Descriptor + /// File descriptor for fds/protobuf/stach/v3/RowOrganizedTable.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RowOrganizedTableReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci1mZHMvcHJvdG9idWYvc3RhY2gvdjMvUm93T3JnYW5pemVkVGFibGUucHJv", + "dG8SGWZhY3RzZXQucHJvdG9idWYuc3RhY2gudjMaKGZkcy9wcm90b2J1Zi9z", + "dGFjaC92My9NZXRhZGF0YUl0ZW0ucHJvdG8aIWZkcy9wcm90b2J1Zi9zdGFj", + "aC92My9UYWJsZS5wcm90bxohZmRzL3Byb3RvYnVmL3N0YWNoL3YzL1ZpZXdz", + "LnByb3RvGhxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvItoGChFSb3dP", + "cmdhbml6ZWRUYWJsZRIPCgd2ZXJzaW9uGAEgASgJEgwKBG5hbWUYAiABKAkS", + "RAoHY29sdW1ucxgDIAMoCzIzLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjMu", + "Um93T3JnYW5pemVkVGFibGUuQ29sdW1uEi8KBXRhYmxlGAQgASgLMiAuZmFj", + "dHNldC5wcm90b2J1Zi5zdGFjaC52My5UYWJsZRJPChltdWx0aV9sZXZlbF9o", + "ZWFkZXJzX3RhYmxlGAUgASgLMiwuZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52", + "My5Sb3dPcmdhbml6ZWRUYWJsZRI0CgV2aWV3cxgGIAMoCzIlLmZhY3RzZXQu", + "cHJvdG9idWYuc3RhY2gudjMuVmlld3MuVmlldxJLCgtoZWFkZXJfcm93cxgH", + "IAMoCzI2LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjMuUm93T3JnYW5pemVk", + "VGFibGUuSGVhZGVyUm93EiUKBHJvd3MYCCADKAsyFy5nb29nbGUucHJvdG9i", + "dWYuU3RydWN0GocCCgZDb2x1bW4SDAoEbmFtZRgBIAEoCRIUCgxmb3JiaWRf", + "bnVsbHMYAiABKAgSFwoPY29udGV4dHVhbF90eXBlGAMgASgJEmAKD2N1c3Rv", + "bV9tZXRhZGF0YRhkIAMoCzJHLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjMu", + "Um93T3JnYW5pemVkVGFibGUuQ29sdW1uLkN1c3RvbU1ldGFkYXRhRW50cnka", + "XgoTQ3VzdG9tTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSNgoFdmFsdWUY", + "AiABKAsyJy5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzLk1ldGFkYXRhSXRl", + "bToCOAEaUwoJSGVhZGVyUm93EkYKBWNlbGxzGAEgAygLMjcuZmFjdHNldC5w", + "cm90b2J1Zi5zdGFjaC52My5Sb3dPcmdhbml6ZWRUYWJsZS5IZWFkZXJDZWxs", + "GlUKCkhlYWRlckNlbGwSDwoHY29sc3BhbhgBIAEoDRIPCgdyb3dzcGFuGAIg", + "ASgNEiUKBXZhbHVlGAMgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlQpEB", + "Ch1jb20uZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52M0IWUm93T3JnYW5pemVk", + "VGFibGVQcm90b1o8Z2l0aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNk", + "a3MvZ28vZmRzL3Byb3RvYnVmL3N0YWNoL3YzqgIZRmFjdFNldC5Qcm90b2J1", + "Zi5TdGFjaC5WM2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V3.MetadataItemReflection.Descriptor, global::FactSet.Protobuf.Stach.V3.TableReflection.Descriptor, global::FactSet.Protobuf.Stach.V3.ViewsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.RowOrganizedTable), global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Parser, new[]{ "Version", "Name", "Columns", "Table", "MultiLevelHeadersTable", "Views", "HeaderRows", "Rows" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.Column), global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.Column.Parser, new[]{ "Name", "ForbidNulls", "ContextualType", "CustomMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.HeaderRow), global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.HeaderRow.Parser, new[]{ "Cells" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.HeaderCell), global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.HeaderCell.Parser, new[]{ "Colspan", "Rowspan", "Value" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// + ///A row-organized table. + ///Used for JSON-encoding a table. + /// + public sealed partial class RowOrganizedTable : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RowOrganizedTable()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.RowOrganizedTableReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RowOrganizedTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RowOrganizedTable(RowOrganizedTable other) : this() { + version_ = other.version_; + name_ = other.name_; + columns_ = other.columns_.Clone(); + table_ = other.table_ != null ? other.table_.Clone() : null; + multiLevelHeadersTable_ = other.multiLevelHeadersTable_ != null ? other.multiLevelHeadersTable_.Clone() : null; + views_ = other.views_.Clone(); + headerRows_ = other.headerRows_.Clone(); + rows_ = other.rows_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RowOrganizedTable Clone() { + return new RowOrganizedTable(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// + ///The version of the schema. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// + ///The name of the table. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "columns" field. + public const int ColumnsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_columns_codec + = pb::FieldCodec.ForMessage(26, global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.Column.Parser); + private readonly pbc::RepeatedField columns_ = new pbc::RepeatedField(); + /// + /// + ///The columns that define this table. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Columns { + get { return columns_; } + } + + /// Field number for the "table" field. + public const int TableFieldNumber = 4; + private global::FactSet.Protobuf.Stach.V3.Table table_; + /// + /// + ///The primary table metadata. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.Table Table { + get { return table_; } + set { + table_ = value; + } + } + + /// Field number for the "multi_level_headers_table" field. + public const int MultiLevelHeadersTableFieldNumber = 5; + private global::FactSet.Protobuf.Stach.V3.RowOrganizedTable multiLevelHeadersTable_; + /// + /// + ///The multi-level headers table. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.RowOrganizedTable MultiLevelHeadersTable { + get { return multiLevelHeadersTable_; } + set { + multiLevelHeadersTable_ = value; + } + } + + /// Field number for the "views" field. + public const int ViewsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_views_codec + = pb::FieldCodec.ForMessage(50, global::FactSet.Protobuf.Stach.V3.Views.Types.View.Parser); + private readonly pbc::RepeatedField views_ = new pbc::RepeatedField(); + /// + /// + ///The views metadata. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Views { + get { return views_; } + } + + /// Field number for the "header_rows" field. + public const int HeaderRowsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_headerRows_codec + = pb::FieldCodec.ForMessage(58, global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.HeaderRow.Parser); + private readonly pbc::RepeatedField headerRows_ = new pbc::RepeatedField(); + /// + /// + ///The header rows. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField HeaderRows { + get { return headerRows_; } + } + + /// Field number for the "rows" field. + public const int RowsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_rows_codec + = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.Struct.Parser); + private readonly pbc::RepeatedField rows_ = new pbc::RepeatedField(); + /// + /// + ///The rows. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Rows { + get { return rows_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RowOrganizedTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RowOrganizedTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (Name != other.Name) return false; + if(!columns_.Equals(other.columns_)) return false; + if (!object.Equals(Table, other.Table)) return false; + if (!object.Equals(MultiLevelHeadersTable, other.MultiLevelHeadersTable)) return false; + if(!views_.Equals(other.views_)) return false; + if(!headerRows_.Equals(other.headerRows_)) return false; + if(!rows_.Equals(other.rows_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= columns_.GetHashCode(); + if (table_ != null) hash ^= Table.GetHashCode(); + if (multiLevelHeadersTable_ != null) hash ^= MultiLevelHeadersTable.GetHashCode(); + hash ^= views_.GetHashCode(); + hash ^= headerRows_.GetHashCode(); + hash ^= rows_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + columns_.WriteTo(output, _repeated_columns_codec); + if (table_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Table); + } + if (multiLevelHeadersTable_ != null) { + output.WriteRawTag(42); + output.WriteMessage(MultiLevelHeadersTable); + } + views_.WriteTo(output, _repeated_views_codec); + headerRows_.WriteTo(output, _repeated_headerRows_codec); + rows_.WriteTo(output, _repeated_rows_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += columns_.CalculateSize(_repeated_columns_codec); + if (table_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Table); + } + if (multiLevelHeadersTable_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiLevelHeadersTable); + } + size += views_.CalculateSize(_repeated_views_codec); + size += headerRows_.CalculateSize(_repeated_headerRows_codec); + size += rows_.CalculateSize(_repeated_rows_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RowOrganizedTable other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + columns_.Add(other.columns_); + if (other.table_ != null) { + if (table_ == null) { + Table = new global::FactSet.Protobuf.Stach.V3.Table(); + } + Table.MergeFrom(other.Table); + } + if (other.multiLevelHeadersTable_ != null) { + if (multiLevelHeadersTable_ == null) { + MultiLevelHeadersTable = new global::FactSet.Protobuf.Stach.V3.RowOrganizedTable(); + } + MultiLevelHeadersTable.MergeFrom(other.MultiLevelHeadersTable); + } + views_.Add(other.views_); + headerRows_.Add(other.headerRows_); + rows_.Add(other.rows_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Version = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + columns_.AddEntriesFrom(input, _repeated_columns_codec); + break; + } + case 34: { + if (table_ == null) { + Table = new global::FactSet.Protobuf.Stach.V3.Table(); + } + input.ReadMessage(Table); + break; + } + case 42: { + if (multiLevelHeadersTable_ == null) { + MultiLevelHeadersTable = new global::FactSet.Protobuf.Stach.V3.RowOrganizedTable(); + } + input.ReadMessage(MultiLevelHeadersTable); + break; + } + case 50: { + views_.AddEntriesFrom(input, _repeated_views_codec); + break; + } + case 58: { + headerRows_.AddEntriesFrom(input, _repeated_headerRows_codec); + break; + } + case 66: { + rows_.AddEntriesFrom(input, _repeated_rows_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the RowOrganizedTable message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// + ///A row-organized column. + /// + public sealed partial class Column : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Column()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Column() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Column(Column other) : this() { + name_ = other.name_; + forbidNulls_ = other.forbidNulls_; + contextualType_ = other.contextualType_; + customMetadata_ = other.customMetadata_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Column Clone() { + return new Column(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// + ///The name of the column. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "forbid_nulls" field. + public const int ForbidNullsFieldNumber = 2; + private bool forbidNulls_; + /// + /// + ///Whether the column can contains NULLs or not. + ///Default is `false`. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ForbidNulls { + get { return forbidNulls_; } + set { + forbidNulls_ = value; + } + } + + /// Field number for the "contextual_type" field. + public const int ContextualTypeFieldNumber = 3; + private string contextualType_ = ""; + /// + /// + ///The contextual type. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ContextualType { + get { return contextualType_; } + set { + contextualType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "custom_metadata" field. + public const int CustomMetadataFieldNumber = 100; + private static readonly pbc::MapField.Codec _map_customMetadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V3.MetadataItem.Parser), 802); + private readonly pbc::MapField customMetadata_ = new pbc::MapField(); + /// + /// + ///The custom metadata. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField CustomMetadata { + get { return customMetadata_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Column other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (ForbidNulls != other.ForbidNulls) return false; + if (ContextualType != other.ContextualType) return false; + if (!CustomMetadata.Equals(other.CustomMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ForbidNulls != false) hash ^= ForbidNulls.GetHashCode(); + if (ContextualType.Length != 0) hash ^= ContextualType.GetHashCode(); + hash ^= CustomMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (ForbidNulls != false) { + output.WriteRawTag(16); + output.WriteBool(ForbidNulls); + } + if (ContextualType.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ContextualType); + } + customMetadata_.WriteTo(output, _map_customMetadata_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (ForbidNulls != false) { + size += 1 + 1; + } + if (ContextualType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContextualType); + } + size += customMetadata_.CalculateSize(_map_customMetadata_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Column other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ForbidNulls != false) { + ForbidNulls = other.ForbidNulls; + } + if (other.ContextualType.Length != 0) { + ContextualType = other.ContextualType; + } + customMetadata_.Add(other.customMetadata_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + ForbidNulls = input.ReadBool(); + break; + } + case 26: { + ContextualType = input.ReadString(); + break; + } + case 802: { + customMetadata_.AddEntriesFrom(input, _map_customMetadata_codec); + break; + } + } + } + } + + } + + /// + /// + ///A row-organized header row. + /// + public sealed partial class HeaderRow : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeaderRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HeaderRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HeaderRow(HeaderRow other) : this() { + cells_ = other.cells_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HeaderRow Clone() { + return new HeaderRow(this); + } + + /// Field number for the "cells" field. + public const int CellsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_cells_codec + = pb::FieldCodec.ForMessage(10, global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Types.HeaderCell.Parser); + private readonly pbc::RepeatedField cells_ = new pbc::RepeatedField(); + /// + /// + ///The header row cells. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Cells { + get { return cells_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as HeaderRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(HeaderRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!cells_.Equals(other.cells_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= cells_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + cells_.WriteTo(output, _repeated_cells_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += cells_.CalculateSize(_repeated_cells_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(HeaderRow other) { + if (other == null) { + return; + } + cells_.Add(other.cells_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + cells_.AddEntriesFrom(input, _repeated_cells_codec); + break; + } + } + } + } + + } + + /// + /// + ///A row-organized header cell. + /// + public sealed partial class HeaderCell : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeaderCell()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.RowOrganizedTable.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HeaderCell() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HeaderCell(HeaderCell other) : this() { + colspan_ = other.colspan_; + rowspan_ = other.rowspan_; + value_ = other.value_ != null ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HeaderCell Clone() { + return new HeaderCell(this); + } + + /// Field number for the "colspan" field. + public const int ColspanFieldNumber = 1; + private uint colspan_; + /// + /// + ///The column span. + ///Default is `0`. A zero is treated as a one. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Colspan { + get { return colspan_; } + set { + colspan_ = value; + } + } + + /// Field number for the "rowspan" field. + public const int RowspanFieldNumber = 2; + private uint rowspan_; + /// + /// + ///The row span. + ///Default is `0`. A zero is treated as a one. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Rowspan { + get { return rowspan_; } + set { + rowspan_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Value value_; + /// + /// + ///The cell's value. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Value Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as HeaderCell); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(HeaderCell other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Colspan != other.Colspan) return false; + if (Rowspan != other.Rowspan) return false; + if (!object.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Colspan != 0) hash ^= Colspan.GetHashCode(); + if (Rowspan != 0) hash ^= Rowspan.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Colspan != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Colspan); + } + if (Rowspan != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Rowspan); + } + if (value_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Colspan != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Colspan); + } + if (Rowspan != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rowspan); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(HeaderCell other) { + if (other == null) { + return; + } + if (other.Colspan != 0) { + Colspan = other.Colspan; + } + if (other.Rowspan != 0) { + Rowspan = other.Rowspan; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::Google.Protobuf.WellKnownTypes.Value(); + } + Value.MergeFrom(other.Value); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Colspan = input.ReadUInt32(); + break; + } + case 16: { + Rowspan = input.ReadUInt32(); + break; + } + case 26: { + if (value_ == null) { + Value = new global::Google.Protobuf.WellKnownTypes.Value(); + } + input.ReadMessage(Value); + break; + } + } + } + } + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table.g.cs b/dotnet/Schema/fds/protobuf/stach/Table.g.cs new file mode 100644 index 0000000..96a134d --- /dev/null +++ b/dotnet/Schema/fds/protobuf/stach/Table.g.cs @@ -0,0 +1,887 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fds/protobuf/stach/v3/Table.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace FactSet.Protobuf.Stach.V3 { + + /// Holder for reflection information generated from fds/protobuf/stach/v3/Table.proto + public static partial class TableReflection { + + #region Descriptor + /// File descriptor for fds/protobuf/stach/v3/Table.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFmZHMvcHJvdG9idWYvc3RhY2gvdjMvVGFibGUucHJvdG8SGWZhY3RzZXQu", + "cHJvdG9idWYuc3RhY2gudjMaKGZkcy9wcm90b2J1Zi9zdGFjaC92My9NZXRh", + "ZGF0YUl0ZW0ucHJvdG8i/QQKBVRhYmxlEhQKDHByaW1hcnlfa2V5cxgBIAMo", + "CRIWCg50b3RhbF9udW1fcm93cxgCIAEoBRJCCgxncm91cF9yZXN1bHQYAyAB", + "KAsyLC5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzLlRhYmxlLkdyb3VwUmVz", + "dWx0EkIKDHNwbGl0X3Jlc3VsdBgEIAEoCzIsLmZhY3RzZXQucHJvdG9idWYu", + "c3RhY2gudjMuVGFibGUuU3BsaXRSZXN1bHQSTQoPY3VzdG9tX21ldGFkYXRh", + "GGQgAygLMjQuZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52My5UYWJsZS5DdXN0", + "b21NZXRhZGF0YUVudHJ5GqsBCgtHcm91cFJlc3VsdBIKCgJieRgBIAMoCRJX", + "Chdjb2xsYXBzZWRfY29sdW1uX3Jlc3VsdBgCIAEoCzI2LmZhY3RzZXQucHJv", + "dG9idWYuc3RhY2gudjMuVGFibGUuQ29sbGFwc2VkQ29sdW1uUmVzdWx0EhAK", + "CHJvd19wYXRoGAMgASgJEhYKDmFnZ3JlZ2F0ZV9yb3dzGAQgASgJEg0KBWxl", + "dmVsGAUgASgJGiUKFUNvbGxhcHNlZENvbHVtblJlc3VsdBIMCgRuYW1lGAEg", + "ASgJGjoKC1NwbGl0UmVzdWx0EisKI211bHRpX2xldmVsX2hlYWRlcnNfdGFi", + "bGVfcmVmZXJlbmNlGAEgASgJGl4KE0N1c3RvbU1ldGFkYXRhRW50cnkSCwoD", + "a2V5GAEgASgJEjYKBXZhbHVlGAIgASgLMicuZmFjdHNldC5wcm90b2J1Zi5z", + "dGFjaC52My5NZXRhZGF0YUl0ZW06AjgBQoUBCh1jb20uZmFjdHNldC5wcm90", + "b2J1Zi5zdGFjaC52M0IKVGFibGVQcm90b1o8Z2l0aHViLmNvbS9mYWN0c2V0", + "L3N0YWNoc2NoZW1hLXNka3MvZ28vZmRzL3Byb3RvYnVmL3N0YWNoL3YzqgIZ", + "RmFjdFNldC5Qcm90b2J1Zi5TdGFjaC5WM2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V3.MetadataItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Table), global::FactSet.Protobuf.Stach.V3.Table.Parser, new[]{ "PrimaryKeys", "TotalNumRows", "GroupResult", "SplitResult", "CustomMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Table.Types.GroupResult), global::FactSet.Protobuf.Stach.V3.Table.Types.GroupResult.Parser, new[]{ "By", "CollapsedColumnResult", "RowPath", "AggregateRows", "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Table.Types.CollapsedColumnResult), global::FactSet.Protobuf.Stach.V3.Table.Types.CollapsedColumnResult.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Table.Types.SplitResult), global::FactSet.Protobuf.Stach.V3.Table.Types.SplitResult.Parser, new[]{ "MultiLevelHeadersTableReference" }, null, null, null, null), + null, }) + })); + } + #endregion + + } + #region Messages + /// + /// + ///A state of tabular data. + ///If the tabular data has already been grouped, split, or a collapsed column produced, these properties are required to indicate that. + /// + public sealed partial class Table : pb::IMessage
{ + private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Table()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser
Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.TableReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Table() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Table(Table other) : this() { + primaryKeys_ = other.primaryKeys_.Clone(); + totalNumRows_ = other.totalNumRows_; + groupResult_ = other.groupResult_ != null ? other.groupResult_.Clone() : null; + splitResult_ = other.splitResult_ != null ? other.splitResult_.Clone() : null; + customMetadata_ = other.customMetadata_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Table Clone() { + return new Table(this); + } + + /// Field number for the "primary_keys" field. + public const int PrimaryKeysFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_primaryKeys_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField primaryKeys_ = new pbc::RepeatedField(); + /// + /// + ///The array of column names that define the primary key for each row. + ///If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField PrimaryKeys { + get { return primaryKeys_; } + } + + /// Field number for the "total_num_rows" field. + public const int TotalNumRowsFieldNumber = 2; + private int totalNumRows_; + /// + /// + ///The total number of rows in the table. + ///If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table. + ///Default is `0`. + ///Required if a payload contains partial data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int TotalNumRows { + get { return totalNumRows_; } + set { + totalNumRows_ = value; + } + } + + /// Field number for the "group_result" field. + public const int GroupResultFieldNumber = 3; + private global::FactSet.Protobuf.Stach.V3.Table.Types.GroupResult groupResult_; + /// + /// + ///The result of the grouping algorithm. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.Table.Types.GroupResult GroupResult { + get { return groupResult_; } + set { + groupResult_ = value; + } + } + + /// Field number for the "split_result" field. + public const int SplitResultFieldNumber = 4; + private global::FactSet.Protobuf.Stach.V3.Table.Types.SplitResult splitResult_; + /// + /// + ///The result of the splitting algorithm. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.Table.Types.SplitResult SplitResult { + get { return splitResult_; } + set { + splitResult_ = value; + } + } + + /// Field number for the "custom_metadata" field. + public const int CustomMetadataFieldNumber = 100; + private static readonly pbc::MapField.Codec _map_customMetadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V3.MetadataItem.Parser), 802); + private readonly pbc::MapField customMetadata_ = new pbc::MapField(); + /// + /// + ///The custom metadata. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField CustomMetadata { + get { return customMetadata_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Table); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Table other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!primaryKeys_.Equals(other.primaryKeys_)) return false; + if (TotalNumRows != other.TotalNumRows) return false; + if (!object.Equals(GroupResult, other.GroupResult)) return false; + if (!object.Equals(SplitResult, other.SplitResult)) return false; + if (!CustomMetadata.Equals(other.CustomMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= primaryKeys_.GetHashCode(); + if (TotalNumRows != 0) hash ^= TotalNumRows.GetHashCode(); + if (groupResult_ != null) hash ^= GroupResult.GetHashCode(); + if (splitResult_ != null) hash ^= SplitResult.GetHashCode(); + hash ^= CustomMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + primaryKeys_.WriteTo(output, _repeated_primaryKeys_codec); + if (TotalNumRows != 0) { + output.WriteRawTag(16); + output.WriteInt32(TotalNumRows); + } + if (groupResult_ != null) { + output.WriteRawTag(26); + output.WriteMessage(GroupResult); + } + if (splitResult_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SplitResult); + } + customMetadata_.WriteTo(output, _map_customMetadata_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += primaryKeys_.CalculateSize(_repeated_primaryKeys_codec); + if (TotalNumRows != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalNumRows); + } + if (groupResult_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GroupResult); + } + if (splitResult_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SplitResult); + } + size += customMetadata_.CalculateSize(_map_customMetadata_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Table other) { + if (other == null) { + return; + } + primaryKeys_.Add(other.primaryKeys_); + if (other.TotalNumRows != 0) { + TotalNumRows = other.TotalNumRows; + } + if (other.groupResult_ != null) { + if (groupResult_ == null) { + GroupResult = new global::FactSet.Protobuf.Stach.V3.Table.Types.GroupResult(); + } + GroupResult.MergeFrom(other.GroupResult); + } + if (other.splitResult_ != null) { + if (splitResult_ == null) { + SplitResult = new global::FactSet.Protobuf.Stach.V3.Table.Types.SplitResult(); + } + SplitResult.MergeFrom(other.SplitResult); + } + customMetadata_.Add(other.customMetadata_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + primaryKeys_.AddEntriesFrom(input, _repeated_primaryKeys_codec); + break; + } + case 16: { + TotalNumRows = input.ReadInt32(); + break; + } + case 26: { + if (groupResult_ == null) { + GroupResult = new global::FactSet.Protobuf.Stach.V3.Table.Types.GroupResult(); + } + input.ReadMessage(GroupResult); + break; + } + case 34: { + if (splitResult_ == null) { + SplitResult = new global::FactSet.Protobuf.Stach.V3.Table.Types.SplitResult(); + } + input.ReadMessage(SplitResult); + break; + } + case 802: { + customMetadata_.AddEntriesFrom(input, _map_customMetadata_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the Table message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// + ///A result of executing the grouping algorithm. + /// + public sealed partial class GroupResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.Table.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GroupResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GroupResult(GroupResult other) : this() { + by_ = other.by_.Clone(); + collapsedColumnResult_ = other.collapsedColumnResult_ != null ? other.collapsedColumnResult_.Clone() : null; + rowPath_ = other.rowPath_; + aggregateRows_ = other.aggregateRows_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GroupResult Clone() { + return new GroupResult(this); + } + + /// Field number for the "by" field. + public const int ByFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_by_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField by_ = new pbc::RepeatedField(); + /// + /// + ///The names of the columns that were grouped by. + ///Required, unless `Table.groupResult.collapsedColumnResult.name` is specified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField By { + get { return by_; } + } + + /// Field number for the "collapsed_column_result" field. + public const int CollapsedColumnResultFieldNumber = 2; + private global::FactSet.Protobuf.Stach.V3.Table.Types.CollapsedColumnResult collapsedColumnResult_; + /// + /// + ///The realized collapsed column. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.Table.Types.CollapsedColumnResult CollapsedColumnResult { + get { return collapsedColumnResult_; } + set { + collapsedColumnResult_ = value; + } + } + + /// Field number for the "row_path" field. + public const int RowPathFieldNumber = 3; + private string rowPath_ = ""; + /// + /// + ///The name of the `string` column that contains the row paths. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string RowPath { + get { return rowPath_; } + set { + rowPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "aggregate_rows" field. + public const int AggregateRowsFieldNumber = 4; + private string aggregateRows_ = ""; + /// + /// + ///The name of the `boolean` column that indicates if a row is an aggregate row. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string AggregateRows { + get { return aggregateRows_; } + set { + aggregateRows_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 5; + private string level_ = ""; + /// + /// + ///The name of the `int32` column that contains the group level override. + ///Takes precedence over row path length. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Level { + get { return level_; } + set { + level_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GroupResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GroupResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!by_.Equals(other.by_)) return false; + if (!object.Equals(CollapsedColumnResult, other.CollapsedColumnResult)) return false; + if (RowPath != other.RowPath) return false; + if (AggregateRows != other.AggregateRows) return false; + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= by_.GetHashCode(); + if (collapsedColumnResult_ != null) hash ^= CollapsedColumnResult.GetHashCode(); + if (RowPath.Length != 0) hash ^= RowPath.GetHashCode(); + if (AggregateRows.Length != 0) hash ^= AggregateRows.GetHashCode(); + if (Level.Length != 0) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + by_.WriteTo(output, _repeated_by_codec); + if (collapsedColumnResult_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CollapsedColumnResult); + } + if (RowPath.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RowPath); + } + if (AggregateRows.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AggregateRows); + } + if (Level.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += by_.CalculateSize(_repeated_by_codec); + if (collapsedColumnResult_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CollapsedColumnResult); + } + if (RowPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RowPath); + } + if (AggregateRows.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateRows); + } + if (Level.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GroupResult other) { + if (other == null) { + return; + } + by_.Add(other.by_); + if (other.collapsedColumnResult_ != null) { + if (collapsedColumnResult_ == null) { + CollapsedColumnResult = new global::FactSet.Protobuf.Stach.V3.Table.Types.CollapsedColumnResult(); + } + CollapsedColumnResult.MergeFrom(other.CollapsedColumnResult); + } + if (other.RowPath.Length != 0) { + RowPath = other.RowPath; + } + if (other.AggregateRows.Length != 0) { + AggregateRows = other.AggregateRows; + } + if (other.Level.Length != 0) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + by_.AddEntriesFrom(input, _repeated_by_codec); + break; + } + case 18: { + if (collapsedColumnResult_ == null) { + CollapsedColumnResult = new global::FactSet.Protobuf.Stach.V3.Table.Types.CollapsedColumnResult(); + } + input.ReadMessage(CollapsedColumnResult); + break; + } + case 26: { + RowPath = input.ReadString(); + break; + } + case 34: { + AggregateRows = input.ReadString(); + break; + } + case 42: { + Level = input.ReadString(); + break; + } + } + } + } + + } + + /// + /// + ///A result of the collapsed column algorithm. + /// + public sealed partial class CollapsedColumnResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CollapsedColumnResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.Table.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CollapsedColumnResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CollapsedColumnResult(CollapsedColumnResult other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CollapsedColumnResult Clone() { + return new CollapsedColumnResult(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// + ///The name of the collapsed column. + ///The collapsed column is in the data so it is considered realized and therefore needs a name. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CollapsedColumnResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CollapsedColumnResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CollapsedColumnResult other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + + } + + /// + /// + ///A result of executing the splitting algorithm. + /// + public sealed partial class SplitResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SplitResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.Table.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SplitResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SplitResult(SplitResult other) : this() { + multiLevelHeadersTableReference_ = other.multiLevelHeadersTableReference_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SplitResult Clone() { + return new SplitResult(this); + } + + /// Field number for the "multi_level_headers_table_reference" field. + public const int MultiLevelHeadersTableReferenceFieldNumber = 1; + private string multiLevelHeadersTableReference_ = ""; + /// + /// + ///The name of the `string` column in the multi-level headers table that refers to column names in the primary table. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string MultiLevelHeadersTableReference { + get { return multiLevelHeadersTableReference_; } + set { + multiLevelHeadersTableReference_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SplitResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SplitResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MultiLevelHeadersTableReference != other.MultiLevelHeadersTableReference) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (MultiLevelHeadersTableReference.Length != 0) hash ^= MultiLevelHeadersTableReference.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (MultiLevelHeadersTableReference.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MultiLevelHeadersTableReference); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (MultiLevelHeadersTableReference.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MultiLevelHeadersTableReference); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SplitResult other) { + if (other == null) { + return; + } + if (other.MultiLevelHeadersTableReference.Length != 0) { + MultiLevelHeadersTableReference = other.MultiLevelHeadersTableReference; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MultiLevelHeadersTableReference = input.ReadString(); + break; + } + } + } + } + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/CellDefinition.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/CellDefinition.g.cs deleted file mode 100644 index dacc866..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/CellDefinition.g.cs +++ /dev/null @@ -1,224 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/CellDefinition.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/CellDefinition.proto - public static partial class CellDefinitionReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/CellDefinition.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CellDefinitionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvQ2VsbERlZmluaXRpb24u", - "cHJvdG8SH2ZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUaLGZkcy9w", - "cm90b2J1Zi9zdGFjaC92Mi90YWJsZS9EYXRhRm9ybWF0LnByb3RvIlsKDkNl", - "bGxEZWZpbml0aW9uEgwKBHR5cGUYASABKAkSOwoGZm9ybWF0GAIgASgLMisu", - "ZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZS5EYXRhRm9ybWF0QqAB", - "CiNjb20uZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZUITQ2VsbERl", - "ZmluaXRpb25Qcm90b1pCZ2l0aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1h", - "LXNka3MvZ28vZmRzL3Byb3RvYnVmL3N0YWNoL3YyL3RhYmxlqgIfRmFjdFNl", - "dC5Qcm90b2J1Zi5TdGFjaC5WMi5UYWJsZWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.DataFormatReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.CellDefinition), global::FactSet.Protobuf.Stach.V2.Table.CellDefinition.Parser, new[]{ "Type", "Format" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A cell definition - /// - /// Overrides the column and row definition - /// - public sealed partial class CellDefinition : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CellDefinition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.CellDefinitionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellDefinition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellDefinition(CellDefinition other) : this() { - type_ = other.type_; - format_ = other.format_ != null ? other.format_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellDefinition Clone() { - return new CellDefinition(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private string type_ = ""; - /// - /// The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Type { - get { return type_; } - set { - type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "format" field. - public const int FormatFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.Table.DataFormat format_; - /// - /// The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.DataFormat Format { - get { return format_; } - set { - format_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as CellDefinition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CellDefinition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (!object.Equals(Format, other.Format)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Type.Length != 0) hash ^= Type.GetHashCode(); - if (format_ != null) hash ^= Format.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Type.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Type); - } - if (format_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Format); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Type.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); - } - if (format_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Format); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CellDefinition other) { - if (other == null) { - return; - } - if (other.Type.Length != 0) { - Type = other.Type; - } - if (other.format_ != null) { - if (format_ == null) { - Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat(); - } - Format.MergeFrom(other.Format); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Type = input.ReadString(); - break; - } - case 18: { - if (format_ == null) { - Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat(); - } - input.ReadMessage(Format); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/ColumnData.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/ColumnData.g.cs deleted file mode 100644 index 718c67b..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/ColumnData.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ColumnData.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/ColumnData.proto - public static partial class ColumnDataReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/ColumnData.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ColumnDataReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CixmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvQ29sdW1uRGF0YS5wcm90", - "bxIfZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZRowZmRzL3Byb3Rv", - "YnVmL3N0YWNoL3YyL3RhYmxlL0NlbGxEZWZpbml0aW9uLnByb3RvGhxnb29n", - "bGUvcHJvdG9idWYvc3RydWN0LnByb3RvIvYBCgpDb2x1bW5EYXRhEkcKBnJh", - "bmdlcxgBIAMoCzI3LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUu", - "Q29sdW1uRGF0YS5SYW5nZXNFbnRyeRIqCgZ2YWx1ZXMYAiABKAsyGi5nb29n", - "bGUucHJvdG9idWYuTGlzdFZhbHVlEkQKC2RlZmluaXRpb25zGAMgAygLMi8u", - "ZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZS5DZWxsRGVmaW5pdGlv", - "bhotCgtSYW5nZXNFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6", - "AjgBQpwBCiNjb20uZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZUIP", - "Q29sdW1uRGF0YVByb3RvWkJnaXRodWIuY29tL2ZhY3RzZXQvc3RhY2hzY2hl", - "bWEtc2Rrcy9nby9mZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGWqAh9GYWN0", - "U2V0LlByb3RvYnVmLlN0YWNoLlYyLlRhYmxlYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.CellDefinitionReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.ColumnData), global::FactSet.Protobuf.Stach.V2.Table.ColumnData.Parser, new[]{ "Ranges", "Values", "Definitions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) - })); - } - #endregion - - } - #region Messages - /// - /// An array of column data - /// - /// The type chosen correlates to the data type of the `ColumnDefinition.type` - /// - public sealed partial class ColumnData : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ColumnData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.ColumnDataReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColumnData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColumnData(ColumnData other) : this() { - ranges_ = other.ranges_.Clone(); - values_ = other.values_ != null ? other.values_.Clone() : null; - definitions_ = other.definitions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColumnData Clone() { - return new ColumnData(this); - } - - /// Field number for the "ranges" field. - public const int RangesFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_ranges_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 10); - private readonly pbc::MapField ranges_ = new pbc::MapField(); - /// - /// The map (key: uncompressed index, value: length to repeat the value) used during compression - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Ranges { - get { return ranges_; } - } - - /// Field number for the "values" field. - public const int ValuesFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.ListValue values_; - /// - /// The values - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Google.Protobuf.WellKnownTypes.ListValue Values { - get { return values_; } - set { - values_ = value; - } - } - - /// Field number for the "definitions" field. - public const int DefinitionsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_definitions_codec - = pb::FieldCodec.ForMessage(26, global::FactSet.Protobuf.Stach.V2.Table.CellDefinition.Parser); - private readonly pbc::RepeatedField definitions_ = new pbc::RepeatedField(); - /// - /// The cell definitions - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Definitions { - get { return definitions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ColumnData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ColumnData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!Ranges.Equals(other.Ranges)) return false; - if (!object.Equals(Values, other.Values)) return false; - if(!definitions_.Equals(other.definitions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= Ranges.GetHashCode(); - if (values_ != null) hash ^= Values.GetHashCode(); - hash ^= definitions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - ranges_.WriteTo(output, _map_ranges_codec); - if (values_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Values); - } - definitions_.WriteTo(output, _repeated_definitions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += ranges_.CalculateSize(_map_ranges_codec); - if (values_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Values); - } - size += definitions_.CalculateSize(_repeated_definitions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ColumnData other) { - if (other == null) { - return; - } - ranges_.Add(other.ranges_); - if (other.values_ != null) { - if (values_ == null) { - Values = new global::Google.Protobuf.WellKnownTypes.ListValue(); - } - Values.MergeFrom(other.Values); - } - definitions_.Add(other.definitions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ranges_.AddEntriesFrom(input, _map_ranges_codec); - break; - } - case 18: { - if (values_ == null) { - Values = new global::Google.Protobuf.WellKnownTypes.ListValue(); - } - input.ReadMessage(Values); - break; - } - case 26: { - definitions_.AddEntriesFrom(input, _repeated_definitions_codec); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/ColumnDefinition.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/ColumnDefinition.g.cs deleted file mode 100644 index 307eec2..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/ColumnDefinition.g.cs +++ /dev/null @@ -1,474 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ColumnDefinition.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/ColumnDefinition.proto - public static partial class ColumnDefinitionReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/ColumnDefinition.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ColumnDefinitionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvQ29sdW1uRGVmaW5pdGlv", - "bi5wcm90bxIfZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZRosZmRz", - "L3Byb3RvYnVmL3N0YWNoL3YyL3RhYmxlL0RhdGFGb3JtYXQucHJvdG8i9AEK", - "EENvbHVtbkRlZmluaXRpb24SCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIT", - "CgtkZXNjcmlwdGlvbhgDIAEoCRIMCgR0eXBlGAQgASgJEhQKDGlzX2RpbWVu", - "c2lvbhgFIAEoCBIRCglpc19oaWRkZW4YBiABKAgSFwoPbmV4dF9zaWJsaW5n", - "X2lkGAcgASgJEhEKCXBhcmVudF9pZBgIIAEoCRIRCgloZWFkZXJfaWQYCSAB", - "KAkSOwoGZm9ybWF0GAogASgLMisuZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52", - "Mi50YWJsZS5EYXRhRm9ybWF0QqIBCiNjb20uZmFjdHNldC5wcm90b2J1Zi5z", - "dGFjaC52Mi50YWJsZUIVQ29sdW1uRGVmaW5pdGlvblByb3RvWkJnaXRodWIu", - "Y29tL2ZhY3RzZXQvc3RhY2hzY2hlbWEtc2Rrcy9nby9mZHMvcHJvdG9idWYv", - "c3RhY2gvdjIvdGFibGWqAh9GYWN0U2V0LlByb3RvYnVmLlN0YWNoLlYyLlRh", - "YmxlYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.DataFormatReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinition), global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinition.Parser, new[]{ "Id", "Name", "Description", "Type", "IsDimension", "IsHidden", "NextSiblingId", "ParentId", "HeaderId", "Format" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A definition of a column - /// - public sealed partial class ColumnDefinition : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ColumnDefinition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinitionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColumnDefinition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColumnDefinition(ColumnDefinition other) : this() { - id_ = other.id_; - name_ = other.name_; - description_ = other.description_; - type_ = other.type_; - isDimension_ = other.isDimension_; - isHidden_ = other.isHidden_; - nextSiblingId_ = other.nextSiblingId_; - parentId_ = other.parentId_; - headerId_ = other.headerId_; - format_ = other.format_ != null ? other.format_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColumnDefinition Clone() { - return new ColumnDefinition(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// The id; used for referring to a column internal to a package - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// The name; used for referring to a column external to a package - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// The description; used for rendering human readable headers - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private string type_ = ""; - /// - /// The data type; correlates with the chosen property for `ColumnData.data` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Type { - get { return type_; } - set { - type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_dimension" field. - public const int IsDimensionFieldNumber = 5; - private bool isDimension_; - /// - /// Whether this column is a dimension or not - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool IsDimension { - get { return isDimension_; } - set { - isDimension_ = value; - } - } - - /// Field number for the "is_hidden" field. - public const int IsHiddenFieldNumber = 6; - private bool isHidden_; - /// - /// Whether this column is hidden or not - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool IsHidden { - get { return isHidden_; } - set { - isHidden_ = value; - } - } - - /// Field number for the "next_sibling_id" field. - public const int NextSiblingIdFieldNumber = 7; - private string nextSiblingId_ = ""; - /// - /// The next sibling column in the collapsed column tree - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string NextSiblingId { - get { return nextSiblingId_; } - set { - nextSiblingId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parent_id" field. - public const int ParentIdFieldNumber = 8; - private string parentId_ = ""; - /// - /// The parent column in the collapsed column tree - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string ParentId { - get { return parentId_; } - set { - parentId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "header_id" field. - public const int HeaderIdFieldNumber = 9; - private string headerId_ = ""; - /// - /// The header id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HeaderId { - get { return headerId_; } - set { - headerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "format" field. - public const int FormatFieldNumber = 10; - private global::FactSet.Protobuf.Stach.V2.Table.DataFormat format_; - /// - /// The data format - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.DataFormat Format { - get { return format_; } - set { - format_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ColumnDefinition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ColumnDefinition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (Type != other.Type) return false; - if (IsDimension != other.IsDimension) return false; - if (IsHidden != other.IsHidden) return false; - if (NextSiblingId != other.NextSiblingId) return false; - if (ParentId != other.ParentId) return false; - if (HeaderId != other.HeaderId) return false; - if (!object.Equals(Format, other.Format)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Type.Length != 0) hash ^= Type.GetHashCode(); - if (IsDimension != false) hash ^= IsDimension.GetHashCode(); - if (IsHidden != false) hash ^= IsHidden.GetHashCode(); - if (NextSiblingId.Length != 0) hash ^= NextSiblingId.GetHashCode(); - if (ParentId.Length != 0) hash ^= ParentId.GetHashCode(); - if (HeaderId.Length != 0) hash ^= HeaderId.GetHashCode(); - if (format_ != null) hash ^= Format.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (Type.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Type); - } - if (IsDimension != false) { - output.WriteRawTag(40); - output.WriteBool(IsDimension); - } - if (IsHidden != false) { - output.WriteRawTag(48); - output.WriteBool(IsHidden); - } - if (NextSiblingId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(NextSiblingId); - } - if (ParentId.Length != 0) { - output.WriteRawTag(66); - output.WriteString(ParentId); - } - if (HeaderId.Length != 0) { - output.WriteRawTag(74); - output.WriteString(HeaderId); - } - if (format_ != null) { - output.WriteRawTag(82); - output.WriteMessage(Format); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Type.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); - } - if (IsDimension != false) { - size += 1 + 1; - } - if (IsHidden != false) { - size += 1 + 1; - } - if (NextSiblingId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextSiblingId); - } - if (ParentId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentId); - } - if (HeaderId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HeaderId); - } - if (format_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Format); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ColumnDefinition other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Type.Length != 0) { - Type = other.Type; - } - if (other.IsDimension != false) { - IsDimension = other.IsDimension; - } - if (other.IsHidden != false) { - IsHidden = other.IsHidden; - } - if (other.NextSiblingId.Length != 0) { - NextSiblingId = other.NextSiblingId; - } - if (other.ParentId.Length != 0) { - ParentId = other.ParentId; - } - if (other.HeaderId.Length != 0) { - HeaderId = other.HeaderId; - } - if (other.format_ != null) { - if (format_ == null) { - Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat(); - } - Format.MergeFrom(other.Format); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Type = input.ReadString(); - break; - } - case 40: { - IsDimension = input.ReadBool(); - break; - } - case 48: { - IsHidden = input.ReadBool(); - break; - } - case 58: { - NextSiblingId = input.ReadString(); - break; - } - case 66: { - ParentId = input.ReadString(); - break; - } - case 74: { - HeaderId = input.ReadString(); - break; - } - case 82: { - if (format_ == null) { - Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat(); - } - input.ReadMessage(Format); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/DataFormat.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/DataFormat.g.cs deleted file mode 100644 index 790465e..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/DataFormat.g.cs +++ /dev/null @@ -1,282 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/DataFormat.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/DataFormat.proto - public static partial class DataFormatReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/DataFormat.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DataFormatReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CixmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvRGF0YUZvcm1hdC5wcm90", - "bxIfZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZRo1ZmRzL3Byb3Rv", - "YnVmL3N0YWNoL3YyL3RhYmxlL0hvcml6b250YWxBbGlnbm1lbnQucHJvdG8a", - "M2Zkcy9wcm90b2J1Zi9zdGFjaC92Mi90YWJsZS9WZXJ0aWNhbEFsaWdubWVu", - "dC5wcm90byK7AQoKRGF0YUZvcm1hdBIOCgZmb3JtYXQYASABKAkSEwoLbnVs", - "bF9mb3JtYXQYAiABKAkSRAoGaGFsaWduGAMgASgOMjQuZmFjdHNldC5wcm90", - "b2J1Zi5zdGFjaC52Mi50YWJsZS5Ib3Jpem9udGFsQWxpZ25tZW50EkIKBnZh", - "bGlnbhgEIAEoDjIyLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUu", - "VmVydGljYWxBbGlnbm1lbnRCnAEKI2NvbS5mYWN0c2V0LnByb3RvYnVmLnN0", - "YWNoLnYyLnRhYmxlQg9EYXRhRm9ybWF0UHJvdG9aQmdpdGh1Yi5jb20vZmFj", - "dHNldC9zdGFjaHNjaGVtYS1zZGtzL2dvL2Zkcy9wcm90b2J1Zi9zdGFjaC92", - "Mi90YWJsZaoCH0ZhY3RTZXQuUHJvdG9idWYuU3RhY2guVjIuVGFibGViBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignmentReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignmentReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.DataFormat), global::FactSet.Protobuf.Stach.V2.Table.DataFormat.Parser, new[]{ "Format", "NullFormat", "Halign", "Valign" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A data format - /// - public sealed partial class DataFormat : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataFormat()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.DataFormatReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DataFormat() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DataFormat(DataFormat other) : this() { - format_ = other.format_; - nullFormat_ = other.nullFormat_; - halign_ = other.halign_; - valign_ = other.valign_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DataFormat Clone() { - return new DataFormat(this); - } - - /// Field number for the "format" field. - public const int FormatFieldNumber = 1; - private string format_ = ""; - /// - /// The format - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Format { - get { return format_; } - set { - format_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "null_format" field. - public const int NullFormatFieldNumber = 2; - private string nullFormat_ = ""; - /// - /// The null format - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string NullFormat { - get { return nullFormat_; } - set { - nullFormat_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "halign" field. - public const int HalignFieldNumber = 3; - private global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment halign_ = global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment.UnknownHalign; - /// - /// The horizontal alignment - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment Halign { - get { return halign_; } - set { - halign_ = value; - } - } - - /// Field number for the "valign" field. - public const int ValignFieldNumber = 4; - private global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment valign_ = global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment.UnknownValign; - /// - /// The vertical alignment - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment Valign { - get { return valign_; } - set { - valign_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as DataFormat); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(DataFormat other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Format != other.Format) return false; - if (NullFormat != other.NullFormat) return false; - if (Halign != other.Halign) return false; - if (Valign != other.Valign) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Format.Length != 0) hash ^= Format.GetHashCode(); - if (NullFormat.Length != 0) hash ^= NullFormat.GetHashCode(); - if (Halign != global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment.UnknownHalign) hash ^= Halign.GetHashCode(); - if (Valign != global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment.UnknownValign) hash ^= Valign.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Format.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Format); - } - if (NullFormat.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NullFormat); - } - if (Halign != global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment.UnknownHalign) { - output.WriteRawTag(24); - output.WriteEnum((int) Halign); - } - if (Valign != global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment.UnknownValign) { - output.WriteRawTag(32); - output.WriteEnum((int) Valign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Format.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Format); - } - if (NullFormat.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NullFormat); - } - if (Halign != global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment.UnknownHalign) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Halign); - } - if (Valign != global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment.UnknownValign) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Valign); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DataFormat other) { - if (other == null) { - return; - } - if (other.Format.Length != 0) { - Format = other.Format; - } - if (other.NullFormat.Length != 0) { - NullFormat = other.NullFormat; - } - if (other.Halign != global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment.UnknownHalign) { - Halign = other.Halign; - } - if (other.Valign != global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment.UnknownValign) { - Valign = other.Valign; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Format = input.ReadString(); - break; - } - case 18: { - NullFormat = input.ReadString(); - break; - } - case 24: { - Halign = (global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment) input.ReadEnum(); - break; - } - case 32: { - Valign = (global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment) input.ReadEnum(); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/HorizontalAlignment.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/HorizontalAlignment.g.cs deleted file mode 100644 index e4abe5f..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/HorizontalAlignment.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/HorizontalAlignment.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/HorizontalAlignment.proto - public static partial class HorizontalAlignmentReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/HorizontalAlignment.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HorizontalAlignmentReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvSG9yaXpvbnRhbEFsaWdu", - "bWVudC5wcm90bxIfZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZSpK", - "ChNIb3Jpem9udGFsQWxpZ25tZW50EhIKDlVOS05PV05fSEFMSUdOEAASCAoE", - "TEVGVBABEgoKBkNFTlRFUhACEgkKBVJJR0hUEANCpQEKI2NvbS5mYWN0c2V0", - "LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlQhhIb3Jpem9udGFsQWxpZ25tZW50", - "UHJvdG9aQmdpdGh1Yi5jb20vZmFjdHNldC9zdGFjaHNjaGVtYS1zZGtzL2dv", - "L2Zkcy9wcm90b2J1Zi9zdGFjaC92Mi90YWJsZaoCH0ZhY3RTZXQuUHJvdG9i", - "dWYuU3RhY2guVjIuVGFibGViBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::FactSet.Protobuf.Stach.V2.Table.HorizontalAlignment), }, null, null)); - } - #endregion - - } - #region Enums - /// - /// A horizontal alignment - /// - public enum HorizontalAlignment { - /// - /// This value should never be used, but exists to ensure that a value is specified - /// - [pbr::OriginalName("UNKNOWN_HALIGN")] UnknownHalign = 0, - /// - /// Value is horizontally aligned to the left of the cell - /// - [pbr::OriginalName("LEFT")] Left = 1, - /// - /// Value is horizontally aligned in the center of the cell - /// - [pbr::OriginalName("CENTER")] Center = 2, - /// - /// Value is horizontally aligned to the right of the cell - /// - [pbr::OriginalName("RIGHT")] Right = 3, - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/ListOfMetadata.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/ListOfMetadata.g.cs deleted file mode 100644 index a697e8d..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/ListOfMetadata.g.cs +++ /dev/null @@ -1,175 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ListOfMetadata.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/ListOfMetadata.proto - public static partial class ListOfMetadataReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/ListOfMetadata.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ListOfMetadataReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvTGlzdE9mTWV0YWRhdGEu", - "cHJvdG8SH2ZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUiHQoOTGlz", - "dE9mTWV0YWRhdGESCwoDaWRzGAEgAygJQqABCiNjb20uZmFjdHNldC5wcm90", - "b2J1Zi5zdGFjaC52Mi50YWJsZUITTGlzdE9mTWV0YWRhdGFQcm90b1pCZ2l0", - "aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3MvZ28vZmRzL3Byb3Rv", - "YnVmL3N0YWNoL3YyL3RhYmxlqgIfRmFjdFNldC5Qcm90b2J1Zi5TdGFjaC5W", - "Mi5UYWJsZWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadata), global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadata.Parser, new[]{ "Ids" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A list of metadata ids - /// - public sealed partial class ListOfMetadata : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListOfMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadataReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ListOfMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ListOfMetadata(ListOfMetadata other) : this() { - ids_ = other.ids_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ListOfMetadata Clone() { - return new ListOfMetadata(this); - } - - /// Field number for the "ids" field. - public const int IdsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_ids_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField ids_ = new pbc::RepeatedField(); - /// - /// The list of metadata ids - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Ids { - get { return ids_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ListOfMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ListOfMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!ids_.Equals(other.ids_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= ids_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - ids_.WriteTo(output, _repeated_ids_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += ids_.CalculateSize(_repeated_ids_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ListOfMetadata other) { - if (other == null) { - return; - } - ids_.Add(other.ids_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ids_.AddEntriesFrom(input, _repeated_ids_codec); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/MetadataCollection.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/MetadataCollection.g.cs deleted file mode 100644 index d07992b..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/MetadataCollection.g.cs +++ /dev/null @@ -1,219 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/MetadataCollection.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/MetadataCollection.proto - public static partial class MetadataCollectionReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/MetadataCollection.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MetadataCollectionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvTWV0YWRhdGFDb2xsZWN0", - "aW9uLnByb3RvEh9mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlGi5m", - "ZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvTWV0YWRhdGFJdGVtLnByb3Rv", - "GjNmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvTWV0YWRhdGFMb2NhdGlv", - "bnMucHJvdG8ihwIKEk1ldGFkYXRhQ29sbGVjdGlvbhJNCgVpdGVtcxgBIAMo", - "CzI+LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUuTWV0YWRhdGFD", - "b2xsZWN0aW9uLkl0ZW1zRW50cnkSRQoJbG9jYXRpb25zGAIgASgLMjIuZmFj", - "dHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZS5NZXRhZGF0YUxvY2F0aW9u", - "cxpbCgpJdGVtc0VudHJ5EgsKA2tleRgBIAEoCRI8CgV2YWx1ZRgCIAEoCzIt", - "LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUuTWV0YWRhdGFJdGVt", - "OgI4AUKkAQojY29tLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGVC", - "F01ldGFkYXRhQ29sbGVjdGlvblByb3RvWkJnaXRodWIuY29tL2ZhY3RzZXQv", - "c3RhY2hzY2hlbWEtc2Rrcy9nby9mZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFi", - "bGWqAh9GYWN0U2V0LlByb3RvYnVmLlN0YWNoLlYyLlRhYmxlYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.MetadataItemReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.MetadataLocationsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.MetadataCollection), global::FactSet.Protobuf.Stach.V2.Table.MetadataCollection.Parser, new[]{ "Items", "Locations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) - })); - } - #endregion - - } - #region Messages - /// - /// A collection of metadata for a table - /// - public sealed partial class MetadataCollection : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataCollection()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.MetadataCollectionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MetadataCollection() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MetadataCollection(MetadataCollection other) : this() { - items_ = other.items_.Clone(); - locations_ = other.locations_ != null ? other.locations_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MetadataCollection Clone() { - return new MetadataCollection(this); - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_items_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataItem.Parser), 10); - private readonly pbc::MapField items_ = new pbc::MapField(); - /// - /// The metadata items associated with a table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Items { - get { return items_; } - } - - /// Field number for the "locations" field. - public const int LocationsFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations locations_; - /// - /// The locations where metadata items are associated - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations Locations { - get { return locations_; } - set { - locations_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MetadataCollection); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MetadataCollection other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!Items.Equals(other.Items)) return false; - if (!object.Equals(Locations, other.Locations)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= Items.GetHashCode(); - if (locations_ != null) hash ^= Locations.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - items_.WriteTo(output, _map_items_codec); - if (locations_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Locations); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += items_.CalculateSize(_map_items_codec); - if (locations_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Locations); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MetadataCollection other) { - if (other == null) { - return; - } - items_.Add(other.items_); - if (other.locations_ != null) { - if (locations_ == null) { - Locations = new global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations(); - } - Locations.MergeFrom(other.Locations); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - items_.AddEntriesFrom(input, _map_items_codec); - break; - } - case 18: { - if (locations_ == null) { - Locations = new global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations(); - } - input.ReadMessage(Locations); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/MetadataLocations.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/MetadataLocations.g.cs deleted file mode 100644 index 6b2a78a..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/MetadataLocations.g.cs +++ /dev/null @@ -1,541 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/MetadataLocations.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/MetadataLocations.proto - public static partial class MetadataLocationsReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/MetadataLocations.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MetadataLocationsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvTWV0YWRhdGFMb2NhdGlv", - "bnMucHJvdG8SH2ZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUaMGZk", - "cy9wcm90b2J1Zi9zdGFjaC92Mi90YWJsZS9MaXN0T2ZNZXRhZGF0YS5wcm90", - "byL7BgoRTWV0YWRhdGFMb2NhdGlvbnMSDQoFdGFibGUYASADKAkSUAoHY29s", - "dW1ucxgCIAMoCzI/LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUu", - "TWV0YWRhdGFMb2NhdGlvbnMuQ29sdW1uc0VudHJ5EkoKBHJvd3MYAyADKAsy", - "PC5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLk1ldGFkYXRhTG9j", - "YXRpb25zLlJvd3NFbnRyeRJQCgVjZWxscxgEIAEoCzJBLmZhY3RzZXQucHJv", - "dG9idWYuc3RhY2gudjIudGFibGUuTWV0YWRhdGFMb2NhdGlvbnMuQ2VsbHND", - "b2x1bW5NYXAa4QEKDkNlbGxzQ29sdW1uTWFwEl8KB2NvbHVtbnMYASADKAsy", - "Ti5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLk1ldGFkYXRhTG9j", - "YXRpb25zLkNlbGxzQ29sdW1uTWFwLkNvbHVtbnNFbnRyeRpuCgxDb2x1bW5z", - "RW50cnkSCwoDa2V5GAEgASgJEk0KBXZhbHVlGAIgASgLMj4uZmFjdHNldC5w", - "cm90b2J1Zi5zdGFjaC52Mi50YWJsZS5NZXRhZGF0YUxvY2F0aW9ucy5DZWxs", - "c1Jvd01hcDoCOAEawwEKC0NlbGxzUm93TWFwElYKBHJvd3MYASADKAsySC5m", - "YWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLk1ldGFkYXRhTG9jYXRp", - "b25zLkNlbGxzUm93TWFwLlJvd3NFbnRyeRpcCglSb3dzRW50cnkSCwoDa2V5", - "GAEgASgJEj4KBXZhbHVlGAIgASgLMi8uZmFjdHNldC5wcm90b2J1Zi5zdGFj", - "aC52Mi50YWJsZS5MaXN0T2ZNZXRhZGF0YToCOAEaXwoMQ29sdW1uc0VudHJ5", - "EgsKA2tleRgBIAEoCRI+CgV2YWx1ZRgCIAEoCzIvLmZhY3RzZXQucHJvdG9i", - "dWYuc3RhY2gudjIudGFibGUuTGlzdE9mTWV0YWRhdGE6AjgBGlwKCVJvd3NF", - "bnRyeRILCgNrZXkYASABKAkSPgoFdmFsdWUYAiABKAsyLy5mYWN0c2V0LnBy", - "b3RvYnVmLnN0YWNoLnYyLnRhYmxlLkxpc3RPZk1ldGFkYXRhOgI4AUKjAQoj", - "Y29tLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGVCFk1ldGFkYXRh", - "TG9jYXRpb25zUHJvdG9aQmdpdGh1Yi5jb20vZmFjdHNldC9zdGFjaHNjaGVt", - "YS1zZGtzL2dvL2Zkcy9wcm90b2J1Zi9zdGFjaC92Mi90YWJsZaoCH0ZhY3RT", - "ZXQuUHJvdG9idWYuU3RhY2guVjIuVGFibGViBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadataReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations), global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Parser, new[]{ "Table", "Columns", "Rows", "Cells" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsColumnMap), global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsColumnMap.Parser, new[]{ "Columns" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsRowMap), global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsRowMap.Parser, new[]{ "Rows" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - null, null, }) - })); - } - #endregion - - } - #region Messages - /// - /// The metadata locations for a table - /// - public sealed partial class MetadataLocations : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataLocations()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.MetadataLocationsReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MetadataLocations() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MetadataLocations(MetadataLocations other) : this() { - table_ = other.table_.Clone(); - columns_ = other.columns_.Clone(); - rows_ = other.rows_.Clone(); - cells_ = other.cells_ != null ? other.cells_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MetadataLocations Clone() { - return new MetadataLocations(this); - } - - /// Field number for the "table" field. - public const int TableFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_table_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField table_ = new pbc::RepeatedField(); - /// - /// The array (metadata item id) of metadata items associated with the whole table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Table { - get { return table_; } - } - - /// Field number for the "columns" field. - public const int ColumnsFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_columns_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadata.Parser), 18); - private readonly pbc::MapField columns_ = new pbc::MapField(); - /// - /// The map (key: column id) of all metadata items associated with a column - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Columns { - get { return columns_; } - } - - /// Field number for the "rows" field. - public const int RowsFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_rows_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadata.Parser), 26); - private readonly pbc::MapField rows_ = new pbc::MapField(); - /// - /// The map (key: row id) of all metadata items associated with a row - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Rows { - get { return rows_; } - } - - /// Field number for the "cells" field. - public const int CellsFieldNumber = 4; - private global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsColumnMap cells_; - /// - /// The metadata items associated with specific cells - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsColumnMap Cells { - get { return cells_; } - set { - cells_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MetadataLocations); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MetadataLocations other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!table_.Equals(other.table_)) return false; - if (!Columns.Equals(other.Columns)) return false; - if (!Rows.Equals(other.Rows)) return false; - if (!object.Equals(Cells, other.Cells)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= table_.GetHashCode(); - hash ^= Columns.GetHashCode(); - hash ^= Rows.GetHashCode(); - if (cells_ != null) hash ^= Cells.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - table_.WriteTo(output, _repeated_table_codec); - columns_.WriteTo(output, _map_columns_codec); - rows_.WriteTo(output, _map_rows_codec); - if (cells_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Cells); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += table_.CalculateSize(_repeated_table_codec); - size += columns_.CalculateSize(_map_columns_codec); - size += rows_.CalculateSize(_map_rows_codec); - if (cells_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cells); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MetadataLocations other) { - if (other == null) { - return; - } - table_.Add(other.table_); - columns_.Add(other.columns_); - rows_.Add(other.rows_); - if (other.cells_ != null) { - if (cells_ == null) { - Cells = new global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsColumnMap(); - } - Cells.MergeFrom(other.Cells); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - table_.AddEntriesFrom(input, _repeated_table_codec); - break; - } - case 18: { - columns_.AddEntriesFrom(input, _map_columns_codec); - break; - } - case 26: { - rows_.AddEntriesFrom(input, _map_rows_codec); - break; - } - case 34: { - if (cells_ == null) { - Cells = new global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsColumnMap(); - } - input.ReadMessage(Cells); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the MetadataLocations message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - /// - /// A message wrapper for a map of columns to `CellsRowMap` - /// - public sealed partial class CellsColumnMap : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CellsColumnMap()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellsColumnMap() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellsColumnMap(CellsColumnMap other) : this() { - columns_ = other.columns_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellsColumnMap Clone() { - return new CellsColumnMap(this); - } - - /// Field number for the "columns" field. - public const int ColumnsFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_columns_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Types.CellsRowMap.Parser), 10); - private readonly pbc::MapField columns_ = new pbc::MapField(); - /// - /// The map (key: column id) of columns to `CellsRowMap` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Columns { - get { return columns_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as CellsColumnMap); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CellsColumnMap other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!Columns.Equals(other.Columns)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= Columns.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - columns_.WriteTo(output, _map_columns_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += columns_.CalculateSize(_map_columns_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CellsColumnMap other) { - if (other == null) { - return; - } - columns_.Add(other.columns_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - columns_.AddEntriesFrom(input, _map_columns_codec); - break; - } - } - } - } - - } - - /// - /// A message wrapper for a map of rows to a list of metadata - /// - public sealed partial class CellsRowMap : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CellsRowMap()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.MetadataLocations.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellsRowMap() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellsRowMap(CellsRowMap other) : this() { - rows_ = other.rows_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CellsRowMap Clone() { - return new CellsRowMap(this); - } - - /// Field number for the "rows" field. - public const int RowsFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_rows_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.ListOfMetadata.Parser), 10); - private readonly pbc::MapField rows_ = new pbc::MapField(); - /// - /// The map (key: row id) of rows to a list of metadata - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Rows { - get { return rows_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as CellsRowMap); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CellsRowMap other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!Rows.Equals(other.Rows)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= Rows.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - rows_.WriteTo(output, _map_rows_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += rows_.CalculateSize(_map_rows_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CellsRowMap other) { - if (other == null) { - return; - } - rows_.Add(other.rows_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - rows_.AddEntriesFrom(input, _map_rows_codec); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/Reference.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/Reference.g.cs deleted file mode 100644 index ba2896d..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/Reference.g.cs +++ /dev/null @@ -1,279 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/Reference.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/Reference.proto - public static partial class ReferenceReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/Reference.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ReferenceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CitmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvUmVmZXJlbmNlLnByb3Rv", - "Eh9mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlGi9mZHMvcHJvdG9i", - "dWYvc3RhY2gvdjIvdGFibGUvUmVmZXJlbmNlVHlwZS5wcm90byKIAQoJUmVm", - "ZXJlbmNlEkYKDnJlZmVyZW5jZV90eXBlGAEgASgOMi4uZmFjdHNldC5wcm90", - "b2J1Zi5zdGFjaC52Mi50YWJsZS5SZWZlcmVuY2VUeXBlEhAKCHRhYmxlX2lk", - "GAIgASgJEhEKCWNvbHVtbl9pZBgDIAEoCRIOCgZyb3dfaWQYBCABKAlCmwEK", - "I2NvbS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlQg5SZWZlcmVu", - "Y2VQcm90b1pCZ2l0aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3Mv", - "Z28vZmRzL3Byb3RvYnVmL3N0YWNoL3YyL3RhYmxlqgIfRmFjdFNldC5Qcm90", - "b2J1Zi5TdGFjaC5WMi5UYWJsZWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.ReferenceTypeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.Reference), global::FactSet.Protobuf.Stach.V2.Table.Reference.Parser, new[]{ "ReferenceType", "TableId", "ColumnId", "RowId" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A reference to a table or a piece of a table - /// - public sealed partial class Reference : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Reference()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.ReferenceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Reference() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Reference(Reference other) : this() { - referenceType_ = other.referenceType_; - tableId_ = other.tableId_; - columnId_ = other.columnId_; - rowId_ = other.rowId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Reference Clone() { - return new Reference(this); - } - - /// Field number for the "reference_type" field. - public const int ReferenceTypeFieldNumber = 1; - private global::FactSet.Protobuf.Stach.V2.Table.ReferenceType referenceType_ = global::FactSet.Protobuf.Stach.V2.Table.ReferenceType.UnknownReferenceType; - /// - /// The type of the reference - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.ReferenceType ReferenceType { - get { return referenceType_; } - set { - referenceType_ = value; - } - } - - /// Field number for the "table_id" field. - public const int TableIdFieldNumber = 2; - private string tableId_ = ""; - /// - /// The table id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string TableId { - get { return tableId_; } - set { - tableId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "column_id" field. - public const int ColumnIdFieldNumber = 3; - private string columnId_ = ""; - /// - /// The column id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string ColumnId { - get { return columnId_; } - set { - columnId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "row_id" field. - public const int RowIdFieldNumber = 4; - private string rowId_ = ""; - /// - /// The row id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string RowId { - get { return rowId_; } - set { - rowId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Reference); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Reference other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ReferenceType != other.ReferenceType) return false; - if (TableId != other.TableId) return false; - if (ColumnId != other.ColumnId) return false; - if (RowId != other.RowId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ReferenceType != global::FactSet.Protobuf.Stach.V2.Table.ReferenceType.UnknownReferenceType) hash ^= ReferenceType.GetHashCode(); - if (TableId.Length != 0) hash ^= TableId.GetHashCode(); - if (ColumnId.Length != 0) hash ^= ColumnId.GetHashCode(); - if (RowId.Length != 0) hash ^= RowId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (ReferenceType != global::FactSet.Protobuf.Stach.V2.Table.ReferenceType.UnknownReferenceType) { - output.WriteRawTag(8); - output.WriteEnum((int) ReferenceType); - } - if (TableId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TableId); - } - if (ColumnId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ColumnId); - } - if (RowId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RowId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (ReferenceType != global::FactSet.Protobuf.Stach.V2.Table.ReferenceType.UnknownReferenceType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReferenceType); - } - if (TableId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TableId); - } - if (ColumnId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ColumnId); - } - if (RowId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RowId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Reference other) { - if (other == null) { - return; - } - if (other.ReferenceType != global::FactSet.Protobuf.Stach.V2.Table.ReferenceType.UnknownReferenceType) { - ReferenceType = other.ReferenceType; - } - if (other.TableId.Length != 0) { - TableId = other.TableId; - } - if (other.ColumnId.Length != 0) { - ColumnId = other.ColumnId; - } - if (other.RowId.Length != 0) { - RowId = other.RowId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - ReferenceType = (global::FactSet.Protobuf.Stach.V2.Table.ReferenceType) input.ReadEnum(); - break; - } - case 18: { - TableId = input.ReadString(); - break; - } - case 26: { - ColumnId = input.ReadString(); - break; - } - case 34: { - RowId = input.ReadString(); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/ReferenceType.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/ReferenceType.g.cs deleted file mode 100644 index 75ff094..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/ReferenceType.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ReferenceType.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/ReferenceType.proto - public static partial class ReferenceTypeReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/ReferenceType.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ReferenceTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9mZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvUmVmZXJlbmNlVHlwZS5w", - "cm90bxIfZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZSpVCg1SZWZl", - "cmVuY2VUeXBlEhoKFlVOS05PV05fUkVGRVJFTkNFX1RZUEUQABIJCgVUQUJM", - "RRABEgoKBkNPTFVNThACEgcKA1JPVxADEggKBENFTEwQBEKfAQojY29tLmZh", - "Y3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGVCElJlZmVyZW5jZVR5cGVQ", - "cm90b1pCZ2l0aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3MvZ28v", - "ZmRzL3Byb3RvYnVmL3N0YWNoL3YyL3RhYmxlqgIfRmFjdFNldC5Qcm90b2J1", - "Zi5TdGFjaC5WMi5UYWJsZWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::FactSet.Protobuf.Stach.V2.Table.ReferenceType), }, null, null)); - } - #endregion - - } - #region Enums - /// - /// The type of table reference - /// - public enum ReferenceType { - /// - /// This value should never be used, but exists to ensure that a value is specified - /// - [pbr::OriginalName("UNKNOWN_REFERENCE_TYPE")] UnknownReferenceType = 0, - /// - /// The table reference - /// - [pbr::OriginalName("TABLE")] Table = 1, - /// - /// The column reference - /// - [pbr::OriginalName("COLUMN")] Column = 2, - /// - /// The row reference - /// - [pbr::OriginalName("ROW")] Row = 3, - /// - /// The cell reference - /// - [pbr::OriginalName("CELL")] Cell = 4, - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/RowDefinition.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/RowDefinition.g.cs deleted file mode 100644 index da4000c..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/RowDefinition.g.cs +++ /dev/null @@ -1,224 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/RowDefinition.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/RowDefinition.proto - public static partial class RowDefinitionReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/RowDefinition.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static RowDefinitionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9mZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvUm93RGVmaW5pdGlvbi5w", - "cm90bxIfZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZRosZmRzL3By", - "b3RvYnVmL3N0YWNoL3YyL3RhYmxlL0RhdGFGb3JtYXQucHJvdG8iWAoNUm93", - "RGVmaW5pdGlvbhIKCgJpZBgBIAEoCRI7CgZmb3JtYXQYAiABKAsyKy5mYWN0", - "c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLkRhdGFGb3JtYXRCnwEKI2Nv", - "bS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlQhJSb3dEZWZpbml0", - "aW9uUHJvdG9aQmdpdGh1Yi5jb20vZmFjdHNldC9zdGFjaHNjaGVtYS1zZGtz", - "L2dvL2Zkcy9wcm90b2J1Zi9zdGFjaC92Mi90YWJsZaoCH0ZhY3RTZXQuUHJv", - "dG9idWYuU3RhY2guVjIuVGFibGViBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.DataFormatReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.RowDefinition), global::FactSet.Protobuf.Stach.V2.Table.RowDefinition.Parser, new[]{ "Id", "Format" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A definition of a row - /// - /// Overrides the column definition - /// - public sealed partial class RowDefinition : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RowDefinition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.RowDefinitionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RowDefinition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RowDefinition(RowDefinition other) : this() { - id_ = other.id_; - format_ = other.format_ != null ? other.format_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RowDefinition Clone() { - return new RowDefinition(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// The id; used for referring to a row internal to a package - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "format" field. - public const int FormatFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.Table.DataFormat format_; - /// - /// The data format; overrides the `ColumnDefinition.format` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.DataFormat Format { - get { return format_; } - set { - format_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as RowDefinition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(RowDefinition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(Format, other.Format)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (format_ != null) hash ^= Format.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (format_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Format); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (format_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Format); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(RowDefinition other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.format_ != null) { - if (format_ == null) { - Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat(); - } - Format.MergeFrom(other.Format); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (format_ == null) { - Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat(); - } - input.ReadMessage(Format); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/Table.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/Table.g.cs deleted file mode 100644 index a3aaf2b..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/Table.g.cs +++ /dev/null @@ -1,230 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/Table.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/Table.proto - public static partial class TableReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/Table.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TableReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CidmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvVGFibGUucHJvdG8SH2Zh", - "Y3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUaK2Zkcy9wcm90b2J1Zi9z", - "dGFjaC92Mi90YWJsZS9UYWJsZURhdGEucHJvdG8aMWZkcy9wcm90b2J1Zi9z", - "dGFjaC92Mi90YWJsZS9UYWJsZURlZmluaXRpb24ucHJvdG8ihwEKBVRhYmxl", - "EkQKCmRlZmluaXRpb24YASABKAsyMC5mYWN0c2V0LnByb3RvYnVmLnN0YWNo", - "LnYyLnRhYmxlLlRhYmxlRGVmaW5pdGlvbhI4CgRkYXRhGAIgASgLMiouZmFj", - "dHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZS5UYWJsZURhdGFClwEKI2Nv", - "bS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlQgpUYWJsZVByb3Rv", - "WkJnaXRodWIuY29tL2ZhY3RzZXQvc3RhY2hzY2hlbWEtc2Rrcy9nby9mZHMv", - "cHJvdG9idWYvc3RhY2gvdjIvdGFibGWqAh9GYWN0U2V0LlByb3RvYnVmLlN0", - "YWNoLlYyLlRhYmxlYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.TableDataReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.TableDefinitionReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.Table), global::FactSet.Protobuf.Stach.V2.Table.Table.Parser, new[]{ "Definition", "Data" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A column organized table - /// - public sealed partial class Table : pb::IMessage
{ - private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Table()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser
Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.TableReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Table() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Table(Table other) : this() { - definition_ = other.definition_ != null ? other.definition_.Clone() : null; - data_ = other.data_ != null ? other.data_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Table Clone() { - return new Table(this); - } - - /// Field number for the "definition" field. - public const int DefinitionFieldNumber = 1; - private global::FactSet.Protobuf.Stach.V2.Table.TableDefinition definition_; - /// - /// The definition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.TableDefinition Definition { - get { return definition_; } - set { - definition_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private global::FactSet.Protobuf.Stach.V2.Table.TableData data_; - /// - /// The data - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.TableData Data { - get { return data_; } - set { - data_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Table); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Table other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Definition, other.Definition)) return false; - if (!object.Equals(Data, other.Data)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (definition_ != null) hash ^= Definition.GetHashCode(); - if (data_ != null) hash ^= Data.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (definition_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Definition); - } - if (data_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Data); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (definition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Definition); - } - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Table other) { - if (other == null) { - return; - } - if (other.definition_ != null) { - if (definition_ == null) { - Definition = new global::FactSet.Protobuf.Stach.V2.Table.TableDefinition(); - } - Definition.MergeFrom(other.Definition); - } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::FactSet.Protobuf.Stach.V2.Table.TableData(); - } - Data.MergeFrom(other.Data); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (definition_ == null) { - Definition = new global::FactSet.Protobuf.Stach.V2.Table.TableDefinition(); - } - input.ReadMessage(Definition); - break; - } - case 18: { - if (data_ == null) { - Data = new global::FactSet.Protobuf.Stach.V2.Table.TableData(); - } - input.ReadMessage(Data); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/TableData.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/TableData.g.cs deleted file mode 100644 index 6637b84..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/TableData.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/TableData.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/TableData.proto - public static partial class TableDataReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/TableData.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TableDataReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CitmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvVGFibGVEYXRhLnByb3Rv", - "Eh9mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlGixmZHMvcHJvdG9i", - "dWYvc3RhY2gvdjIvdGFibGUvQ29sdW1uRGF0YS5wcm90bxo0ZmRzL3Byb3Rv", - "YnVmL3N0YWNoL3YyL3RhYmxlL01ldGFkYXRhQ29sbGVjdGlvbi5wcm90bxov", - "ZmRzL3Byb3RvYnVmL3N0YWNoL3YyL3RhYmxlL1Jvd0RlZmluaXRpb24ucHJv", - "dG8itwIKCVRhYmxlRGF0YRI8CgRyb3dzGAEgAygLMi4uZmFjdHNldC5wcm90", - "b2J1Zi5zdGFjaC52Mi50YWJsZS5Sb3dEZWZpbml0aW9uEkgKB2NvbHVtbnMY", - "AiADKAsyNy5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLlRhYmxl", - "RGF0YS5Db2x1bW5zRW50cnkSRQoIbWV0YWRhdGEYAyABKAsyMy5mYWN0c2V0", - "LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlLk1ldGFkYXRhQ29sbGVjdGlvbhpb", - "CgxDb2x1bW5zRW50cnkSCwoDa2V5GAEgASgJEjoKBXZhbHVlGAIgASgLMisu", - "ZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52Mi50YWJsZS5Db2x1bW5EYXRhOgI4", - "AUKbAQojY29tLmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGVCDlRh", - "YmxlRGF0YVByb3RvWkJnaXRodWIuY29tL2ZhY3RzZXQvc3RhY2hzY2hlbWEt", - "c2Rrcy9nby9mZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGWqAh9GYWN0U2V0", - "LlByb3RvYnVmLlN0YWNoLlYyLlRhYmxlYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.ColumnDataReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.MetadataCollectionReflection.Descriptor, global::FactSet.Protobuf.Stach.V2.Table.RowDefinitionReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.TableData), global::FactSet.Protobuf.Stach.V2.Table.TableData.Parser, new[]{ "Rows", "Columns", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) - })); - } - #endregion - - } - #region Messages - /// - /// An object of table data - /// - public sealed partial class TableData : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TableData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.TableDataReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableData(TableData other) : this() { - rows_ = other.rows_.Clone(); - columns_ = other.columns_.Clone(); - metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableData Clone() { - return new TableData(this); - } - - /// Field number for the "rows" field. - public const int RowsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_rows_codec - = pb::FieldCodec.ForMessage(10, global::FactSet.Protobuf.Stach.V2.Table.RowDefinition.Parser); - private readonly pbc::RepeatedField rows_ = new pbc::RepeatedField(); - /// - /// The array of rows definitions - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Rows { - get { return rows_; } - } - - /// Field number for the "columns" field. - public const int ColumnsFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_columns_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.ColumnData.Parser), 18); - private readonly pbc::MapField columns_ = new pbc::MapField(); - /// - /// The map (key: column id) of column data - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::MapField Columns { - get { return columns_; } - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 3; - private global::FactSet.Protobuf.Stach.V2.Table.MetadataCollection metadata_; - /// - /// The metadata - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::FactSet.Protobuf.Stach.V2.Table.MetadataCollection Metadata { - get { return metadata_; } - set { - metadata_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as TableData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(TableData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!rows_.Equals(other.rows_)) return false; - if (!Columns.Equals(other.Columns)) return false; - if (!object.Equals(Metadata, other.Metadata)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= rows_.GetHashCode(); - hash ^= Columns.GetHashCode(); - if (metadata_ != null) hash ^= Metadata.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - rows_.WriteTo(output, _repeated_rows_codec); - columns_.WriteTo(output, _map_columns_codec); - if (metadata_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Metadata); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += rows_.CalculateSize(_repeated_rows_codec); - size += columns_.CalculateSize(_map_columns_codec); - if (metadata_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(TableData other) { - if (other == null) { - return; - } - rows_.Add(other.rows_); - columns_.Add(other.columns_); - if (other.metadata_ != null) { - if (metadata_ == null) { - Metadata = new global::FactSet.Protobuf.Stach.V2.Table.MetadataCollection(); - } - Metadata.MergeFrom(other.Metadata); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - rows_.AddEntriesFrom(input, _repeated_rows_codec); - break; - } - case 18: { - columns_.AddEntriesFrom(input, _map_columns_codec); - break; - } - case 26: { - if (metadata_ == null) { - Metadata = new global::FactSet.Protobuf.Stach.V2.Table.MetadataCollection(); - } - input.ReadMessage(Metadata); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/TableDefinition.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/TableDefinition.g.cs deleted file mode 100644 index 9455c58..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/TableDefinition.g.cs +++ /dev/null @@ -1,209 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/TableDefinition.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/TableDefinition.proto - public static partial class TableDefinitionReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/TableDefinition.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TableDefinitionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvVGFibGVEZWZpbml0aW9u", - "LnByb3RvEh9mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYyLnRhYmxlGjJmZHMv", - "cHJvdG9idWYvc3RhY2gvdjIvdGFibGUvQ29sdW1uRGVmaW5pdGlvbi5wcm90", - "byJuCg9UYWJsZURlZmluaXRpb24SFwoPaGVhZGVyX3RhYmxlX2lkGAEgASgJ", - "EkIKB2NvbHVtbnMYAiADKAsyMS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYy", - "LnRhYmxlLkNvbHVtbkRlZmluaXRpb25CoQEKI2NvbS5mYWN0c2V0LnByb3Rv", - "YnVmLnN0YWNoLnYyLnRhYmxlQhRUYWJsZURlZmluaXRpb25Qcm90b1pCZ2l0", - "aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3MvZ28vZmRzL3Byb3Rv", - "YnVmL3N0YWNoL3YyL3RhYmxlqgIfRmFjdFNldC5Qcm90b2J1Zi5TdGFjaC5W", - "Mi5UYWJsZWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinitionReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V2.Table.TableDefinition), global::FactSet.Protobuf.Stach.V2.Table.TableDefinition.Parser, new[]{ "HeaderTableId", "Columns" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A table definition - /// - public sealed partial class TableDefinition : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TableDefinition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::FactSet.Protobuf.Stach.V2.Table.TableDefinitionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableDefinition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableDefinition(TableDefinition other) : this() { - headerTableId_ = other.headerTableId_; - columns_ = other.columns_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TableDefinition Clone() { - return new TableDefinition(this); - } - - /// Field number for the "header_table_id" field. - public const int HeaderTableIdFieldNumber = 1; - private string headerTableId_ = ""; - /// - /// The id of the headers table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HeaderTableId { - get { return headerTableId_; } - set { - headerTableId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "columns" field. - public const int ColumnsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_columns_codec - = pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V2.Table.ColumnDefinition.Parser); - private readonly pbc::RepeatedField columns_ = new pbc::RepeatedField(); - /// - /// The array of column definitions - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Columns { - get { return columns_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as TableDefinition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(TableDefinition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HeaderTableId != other.HeaderTableId) return false; - if(!columns_.Equals(other.columns_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (HeaderTableId.Length != 0) hash ^= HeaderTableId.GetHashCode(); - hash ^= columns_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (HeaderTableId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(HeaderTableId); - } - columns_.WriteTo(output, _repeated_columns_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (HeaderTableId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HeaderTableId); - } - size += columns_.CalculateSize(_repeated_columns_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(TableDefinition other) { - if (other == null) { - return; - } - if (other.HeaderTableId.Length != 0) { - HeaderTableId = other.HeaderTableId; - } - columns_.Add(other.columns_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - HeaderTableId = input.ReadString(); - break; - } - case 18: { - columns_.AddEntriesFrom(input, _repeated_columns_codec); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Table/VerticalAlignment.g.cs b/dotnet/Schema/fds/protobuf/stach/Table/VerticalAlignment.g.cs deleted file mode 100644 index c2bc960..0000000 --- a/dotnet/Schema/fds/protobuf/stach/Table/VerticalAlignment.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/VerticalAlignment.proto -// -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace FactSet.Protobuf.Stach.V2.Table { - - /// Holder for reflection information generated from fds/protobuf/stach/v2/table/VerticalAlignment.proto - public static partial class VerticalAlignmentReflection { - - #region Descriptor - /// File descriptor for fds/protobuf/stach/v2/table/VerticalAlignment.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static VerticalAlignmentReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNmZHMvcHJvdG9idWYvc3RhY2gvdjIvdGFibGUvVmVydGljYWxBbGlnbm1l", - "bnQucHJvdG8SH2ZhY3RzZXQucHJvdG9idWYuc3RhY2gudjIudGFibGUqSAoR", - "VmVydGljYWxBbGlnbm1lbnQSEgoOVU5LTk9XTl9WQUxJR04QABIHCgNUT1AQ", - "ARIKCgZNSURETEUQAhIKCgZCT1RUT00QA0KjAQojY29tLmZhY3RzZXQucHJv", - "dG9idWYuc3RhY2gudjIudGFibGVCFlZlcnRpY2FsQWxpZ25tZW50UHJvdG9a", - "QmdpdGh1Yi5jb20vZmFjdHNldC9zdGFjaHNjaGVtYS1zZGtzL2dvL2Zkcy9w", - "cm90b2J1Zi9zdGFjaC92Mi90YWJsZaoCH0ZhY3RTZXQuUHJvdG9idWYuU3Rh", - "Y2guVjIuVGFibGViBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::FactSet.Protobuf.Stach.V2.Table.VerticalAlignment), }, null, null)); - } - #endregion - - } - #region Enums - /// - /// A vertical alignment - /// - public enum VerticalAlignment { - /// - /// This value should never be used, but exists to ensure that a value is specified - /// - [pbr::OriginalName("UNKNOWN_VALIGN")] UnknownValign = 0, - /// - /// Value is vertically aligned to the top of the cell - /// - [pbr::OriginalName("TOP")] Top = 1, - /// - /// Value is vertically aligned to the middle of the cell - /// - [pbr::OriginalName("MIDDLE")] Middle = 2, - /// - /// Value is vertically aligned to the bottom of the cell - /// - [pbr::OriginalName("BOTTOM")] Bottom = 3, - } - - #endregion - -} - -#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/TableView.g.cs b/dotnet/Schema/fds/protobuf/stach/TableView.g.cs new file mode 100644 index 0000000..56d4fa5 --- /dev/null +++ b/dotnet/Schema/fds/protobuf/stach/TableView.g.cs @@ -0,0 +1,952 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fds/protobuf/stach/v3/TableView.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace FactSet.Protobuf.Stach.V3 { + + /// Holder for reflection information generated from fds/protobuf/stach/v3/TableView.proto + public static partial class TableViewReflection { + + #region Descriptor + /// File descriptor for fds/protobuf/stach/v3/TableView.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableViewReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVmZHMvcHJvdG9idWYvc3RhY2gvdjMvVGFibGVWaWV3LnByb3RvEhlmYWN0", + "c2V0LnByb3RvYnVmLnN0YWNoLnYzGihmZHMvcHJvdG9idWYvc3RhY2gvdjMv", + "TWV0YWRhdGFJdGVtLnByb3RvIrgGCglUYWJsZVZpZXcSFAoMZGlzcGxheV9u", + "YW1lGAEgASgJEg8KB2NvbHVtbnMYAiADKAkSQgoHaGVhZGVycxgDIAMoCzIx", + "LmZhY3RzZXQucHJvdG9idWYuc3RhY2gudjMuVGFibGVWaWV3LkhlYWRlcnNF", + "bnRyeRI5CgVncm91cBgEIAEoCzIqLmZhY3RzZXQucHJvdG9idWYuc3RhY2gu", + "djMuVGFibGVWaWV3Lkdyb3VwEjkKBXNwbGl0GAUgASgLMiouZmFjdHNldC5w", + "cm90b2J1Zi5zdGFjaC52My5UYWJsZVZpZXcuU3BsaXQSUQoPY3VzdG9tX21l", + "dGFkYXRhGGQgAygLMjguZmFjdHNldC5wcm90b2J1Zi5zdGFjaC52My5UYWJs", + "ZVZpZXcuQ3VzdG9tTWV0YWRhdGFFbnRyeRpjCgVHcm91cBIKCgJieRgBIAMo", + "CRJOChBjb2xsYXBzZWRfY29sdW1uGAIgASgLMjQuZmFjdHNldC5wcm90b2J1", + "Zi5zdGFjaC52My5UYWJsZVZpZXcuQ29sbGFwc2VkQ29sdW1uGiAKD0NvbGxh", + "cHNlZENvbHVtbhINCgVhbGlhcxgBIAEoCRrfAQoFU3BsaXQSDQoFYWxpYXMY", + "ASABKAkSCgoCYnkYAiADKAkSDwoHaW5jbHVkZRgDIAMoCRIMCgRvdmVyGAQg", + "AygJEkgKB2hlYWRlcnMYBSADKAsyNy5mYWN0c2V0LnByb3RvYnVmLnN0YWNo", + "LnYzLlRhYmxlVmlldy5TcGxpdC5IZWFkZXJzRW50cnkSIgoacmVtb3ZlX2Vt", + "cHR5X3NwbGl0X2NvbHVtbnMYBiABKAgaLgoMSGVhZGVyc0VudHJ5EgsKA2tl", + "eRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaLgoMSGVhZGVyc0VudHJ5EgsK", + "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaXgoTQ3VzdG9tTWV0YWRh", + "dGFFbnRyeRILCgNrZXkYASABKAkSNgoFdmFsdWUYAiABKAsyJy5mYWN0c2V0", + "LnByb3RvYnVmLnN0YWNoLnYzLk1ldGFkYXRhSXRlbToCOAFCiQEKHWNvbS5m", + "YWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzQg5UYWJsZVZpZXdQcm90b1o8Z2l0", + "aHViLmNvbS9mYWN0c2V0L3N0YWNoc2NoZW1hLXNka3MvZ28vZmRzL3Byb3Rv", + "YnVmL3N0YWNoL3YzqgIZRmFjdFNldC5Qcm90b2J1Zi5TdGFjaC5WM2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V3.MetadataItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.TableView), global::FactSet.Protobuf.Stach.V3.TableView.Parser, new[]{ "DisplayName", "Columns", "Headers", "Group", "Split", "CustomMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.TableView.Types.Group), global::FactSet.Protobuf.Stach.V3.TableView.Types.Group.Parser, new[]{ "By", "CollapsedColumn" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.TableView.Types.CollapsedColumn), global::FactSet.Protobuf.Stach.V3.TableView.Types.CollapsedColumn.Parser, new[]{ "Alias" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.TableView.Types.Split), global::FactSet.Protobuf.Stach.V3.TableView.Types.Split.Parser, new[]{ "Alias", "By", "Include", "Over", "Headers", "RemoveEmptySplitColumns" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + null, null, }) + })); + } + #endregion + + } + #region Messages + /// + /// + ///A set of metadata specifying the settings that instruct how to turn tabular data into a rendered table. + /// + public sealed partial class TableView : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TableView()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.TableViewReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TableView() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TableView(TableView other) : this() { + displayName_ = other.displayName_; + columns_ = other.columns_.Clone(); + headers_ = other.headers_.Clone(); + group_ = other.group_ != null ? other.group_.Clone() : null; + split_ = other.split_ != null ? other.split_.Clone() : null; + customMetadata_ = other.customMetadata_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TableView Clone() { + return new TableView(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// + ///The human readable display name for the table. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "columns" field. + public const int ColumnsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_columns_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField columns_ = new pbc::RepeatedField(); + /// + /// + ///The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns. + ///An empty array will display no columns. The order of the column names is the order the columns will be displayed. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Columns { + get { return columns_; } + } + + /// Field number for the "headers" field. + public const int HeadersFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_headers_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); + private readonly pbc::MapField headers_ = new pbc::MapField(); + /// + /// + ///The human-readable header values of columns to be applied. + ///Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }` + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField Headers { + get { return headers_; } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 4; + private global::FactSet.Protobuf.Stach.V3.TableView.Types.Group group_; + /// + /// + ///The group algorithm to be applied. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.TableView.Types.Group Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "split" field. + public const int SplitFieldNumber = 5; + private global::FactSet.Protobuf.Stach.V3.TableView.Types.Split split_; + /// + /// + ///The split algorithm to be applied. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.TableView.Types.Split Split { + get { return split_; } + set { + split_ = value; + } + } + + /// Field number for the "custom_metadata" field. + public const int CustomMetadataFieldNumber = 100; + private static readonly pbc::MapField.Codec _map_customMetadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::FactSet.Protobuf.Stach.V3.MetadataItem.Parser), 802); + private readonly pbc::MapField customMetadata_ = new pbc::MapField(); + /// + /// + ///The custom metadata. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField CustomMetadata { + get { return customMetadata_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TableView); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(TableView other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if(!columns_.Equals(other.columns_)) return false; + if (!Headers.Equals(other.Headers)) return false; + if (!object.Equals(Group, other.Group)) return false; + if (!object.Equals(Split, other.Split)) return false; + if (!CustomMetadata.Equals(other.CustomMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + hash ^= columns_.GetHashCode(); + hash ^= Headers.GetHashCode(); + if (group_ != null) hash ^= Group.GetHashCode(); + if (split_ != null) hash ^= Split.GetHashCode(); + hash ^= CustomMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + columns_.WriteTo(output, _repeated_columns_codec); + headers_.WriteTo(output, _map_headers_codec); + if (group_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Group); + } + if (split_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Split); + } + customMetadata_.WriteTo(output, _map_customMetadata_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + size += columns_.CalculateSize(_repeated_columns_codec); + size += headers_.CalculateSize(_map_headers_codec); + if (group_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Group); + } + if (split_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Split); + } + size += customMetadata_.CalculateSize(_map_customMetadata_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TableView other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + columns_.Add(other.columns_); + headers_.Add(other.headers_); + if (other.group_ != null) { + if (group_ == null) { + Group = new global::FactSet.Protobuf.Stach.V3.TableView.Types.Group(); + } + Group.MergeFrom(other.Group); + } + if (other.split_ != null) { + if (split_ == null) { + Split = new global::FactSet.Protobuf.Stach.V3.TableView.Types.Split(); + } + Split.MergeFrom(other.Split); + } + customMetadata_.Add(other.customMetadata_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + DisplayName = input.ReadString(); + break; + } + case 18: { + columns_.AddEntriesFrom(input, _repeated_columns_codec); + break; + } + case 26: { + headers_.AddEntriesFrom(input, _map_headers_codec); + break; + } + case 34: { + if (group_ == null) { + Group = new global::FactSet.Protobuf.Stach.V3.TableView.Types.Group(); + } + input.ReadMessage(Group); + break; + } + case 42: { + if (split_ == null) { + Split = new global::FactSet.Protobuf.Stach.V3.TableView.Types.Split(); + } + input.ReadMessage(Split); + break; + } + case 802: { + customMetadata_.AddEntriesFrom(input, _map_customMetadata_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the TableView message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// + ///An algorithm that groups tabular data by a set of columns and produces aggregate rows. + /// + public sealed partial class Group : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Group()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.TableView.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Group() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Group(Group other) : this() { + by_ = other.by_.Clone(); + collapsedColumn_ = other.collapsedColumn_ != null ? other.collapsedColumn_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Group Clone() { + return new Group(this); + } + + /// Field number for the "by" field. + public const int ByFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_by_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField by_ = new pbc::RepeatedField(); + /// + /// + ///The names of the columns to group by. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField By { + get { return by_; } + } + + /// Field number for the "collapsed_column" field. + public const int CollapsedColumnFieldNumber = 2; + private global::FactSet.Protobuf.Stach.V3.TableView.Types.CollapsedColumn collapsedColumn_; + /// + /// + ///The settings for the algorithm to create a collapsed column. + ///The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.TableView.Types.CollapsedColumn CollapsedColumn { + get { return collapsedColumn_; } + set { + collapsedColumn_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Group); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Group other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!by_.Equals(other.by_)) return false; + if (!object.Equals(CollapsedColumn, other.CollapsedColumn)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= by_.GetHashCode(); + if (collapsedColumn_ != null) hash ^= CollapsedColumn.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + by_.WriteTo(output, _repeated_by_codec); + if (collapsedColumn_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CollapsedColumn); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += by_.CalculateSize(_repeated_by_codec); + if (collapsedColumn_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CollapsedColumn); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Group other) { + if (other == null) { + return; + } + by_.Add(other.by_); + if (other.collapsedColumn_ != null) { + if (collapsedColumn_ == null) { + CollapsedColumn = new global::FactSet.Protobuf.Stach.V3.TableView.Types.CollapsedColumn(); + } + CollapsedColumn.MergeFrom(other.CollapsedColumn); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + by_.AddEntriesFrom(input, _repeated_by_codec); + break; + } + case 18: { + if (collapsedColumn_ == null) { + CollapsedColumn = new global::FactSet.Protobuf.Stach.V3.TableView.Types.CollapsedColumn(); + } + input.ReadMessage(CollapsedColumn); + break; + } + } + } + } + + } + + /// + /// + ///A virtual collapsed column. + /// + public sealed partial class CollapsedColumn : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CollapsedColumn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.TableView.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CollapsedColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CollapsedColumn(CollapsedColumn other) : this() { + alias_ = other.alias_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CollapsedColumn Clone() { + return new CollapsedColumn(this); + } + + /// Field number for the "alias" field. + public const int AliasFieldNumber = 1; + private string alias_ = ""; + /// + /// + ///The alias of the collapsed column. + ///The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Alias { + get { return alias_; } + set { + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CollapsedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CollapsedColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Alias != other.Alias) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Alias.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Alias); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CollapsedColumn other) { + if (other == null) { + return; + } + if (other.Alias.Length != 0) { + Alias = other.Alias; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Alias = input.ReadString(); + break; + } + } + } + } + + } + + /// + /// + ///An algorithm that vertically splits tabular data and produces a column for each unique value in the columns that were split over. + /// + public sealed partial class Split : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Split()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.TableView.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Split() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Split(Split other) : this() { + alias_ = other.alias_; + by_ = other.by_.Clone(); + include_ = other.include_.Clone(); + over_ = other.over_.Clone(); + headers_ = other.headers_.Clone(); + removeEmptySplitColumns_ = other.removeEmptySplitColumns_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Split Clone() { + return new Split(this); + } + + /// Field number for the "alias" field. + public const int AliasFieldNumber = 1; + private string alias_ = ""; + /// + /// + ///The alias of the columns generated by the split algorithm. + ///A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Alias { + get { return alias_; } + set { + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "by" field. + public const int ByFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_by_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField by_ = new pbc::RepeatedField(); + /// + /// + ///The names of columns to split by. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField By { + get { return by_; } + } + + /// Field number for the "include" field. + public const int IncludeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_include_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField include_ = new pbc::RepeatedField(); + /// + /// + ///The names of columns to include in the multi-level headers table when splitting. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Include { + get { return include_; } + } + + /// Field number for the "over" field. + public const int OverFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_over_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField over_ = new pbc::RepeatedField(); + /// + /// + ///The names of columns to split over. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Over { + get { return over_; } + } + + /// Field number for the "headers" field. + public const int HeadersFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_headers_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField headers_ = new pbc::MapField(); + /// + /// + ///The human-readable header values of `over` columns to be applied. + ///Key is the column name, and value is the human-readable value. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField Headers { + get { return headers_; } + } + + /// Field number for the "remove_empty_split_columns" field. + public const int RemoveEmptySplitColumnsFieldNumber = 6; + private bool removeEmptySplitColumns_; + /// + /// + ///Whether to remove empty split columns or not. + ///Default is `false`. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool RemoveEmptySplitColumns { + get { return removeEmptySplitColumns_; } + set { + removeEmptySplitColumns_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Split); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Split other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Alias != other.Alias) return false; + if(!by_.Equals(other.by_)) return false; + if(!include_.Equals(other.include_)) return false; + if(!over_.Equals(other.over_)) return false; + if (!Headers.Equals(other.Headers)) return false; + if (RemoveEmptySplitColumns != other.RemoveEmptySplitColumns) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); + hash ^= by_.GetHashCode(); + hash ^= include_.GetHashCode(); + hash ^= over_.GetHashCode(); + hash ^= Headers.GetHashCode(); + if (RemoveEmptySplitColumns != false) hash ^= RemoveEmptySplitColumns.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Alias.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Alias); + } + by_.WriteTo(output, _repeated_by_codec); + include_.WriteTo(output, _repeated_include_codec); + over_.WriteTo(output, _repeated_over_codec); + headers_.WriteTo(output, _map_headers_codec); + if (RemoveEmptySplitColumns != false) { + output.WriteRawTag(48); + output.WriteBool(RemoveEmptySplitColumns); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); + } + size += by_.CalculateSize(_repeated_by_codec); + size += include_.CalculateSize(_repeated_include_codec); + size += over_.CalculateSize(_repeated_over_codec); + size += headers_.CalculateSize(_map_headers_codec); + if (RemoveEmptySplitColumns != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Split other) { + if (other == null) { + return; + } + if (other.Alias.Length != 0) { + Alias = other.Alias; + } + by_.Add(other.by_); + include_.Add(other.include_); + over_.Add(other.over_); + headers_.Add(other.headers_); + if (other.RemoveEmptySplitColumns != false) { + RemoveEmptySplitColumns = other.RemoveEmptySplitColumns; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Alias = input.ReadString(); + break; + } + case 18: { + by_.AddEntriesFrom(input, _repeated_by_codec); + break; + } + case 26: { + include_.AddEntriesFrom(input, _repeated_include_codec); + break; + } + case 34: { + over_.AddEntriesFrom(input, _repeated_over_codec); + break; + } + case 42: { + headers_.AddEntriesFrom(input, _map_headers_codec); + break; + } + case 48: { + RemoveEmptySplitColumns = input.ReadBool(); + break; + } + } + } + } + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/dotnet/Schema/fds/protobuf/stach/Views.g.cs b/dotnet/Schema/fds/protobuf/stach/Views.g.cs new file mode 100644 index 0000000..f27276a --- /dev/null +++ b/dotnet/Schema/fds/protobuf/stach/Views.g.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fds/protobuf/stach/v3/Views.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace FactSet.Protobuf.Stach.V3 { + + /// Holder for reflection information generated from fds/protobuf/stach/v3/Views.proto + public static partial class ViewsReflection { + + #region Descriptor + /// File descriptor for fds/protobuf/stach/v3/Views.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ViewsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFmZHMvcHJvdG9idWYvc3RhY2gvdjMvVmlld3MucHJvdG8SGWZhY3RzZXQu", + "cHJvdG9idWYuc3RhY2gudjMaJWZkcy9wcm90b2J1Zi9zdGFjaC92My9UYWJs", + "ZVZpZXcucHJvdG8iqAEKBVZpZXdzEjQKBXZpZXdzGAEgAygLMiUuZmFjdHNl", + "dC5wcm90b2J1Zi5zdGFjaC52My5WaWV3cy5WaWV3GmkKBFZpZXcSDAoEbmFt", + "ZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSNQoFdGFibGUYAyABKAsy", + "JC5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzLlRhYmxlVmlld0gAQgYKBHR5", + "cGVChQEKHWNvbS5mYWN0c2V0LnByb3RvYnVmLnN0YWNoLnYzQgpWaWV3c1By", + "b3RvWjxnaXRodWIuY29tL2ZhY3RzZXQvc3RhY2hzY2hlbWEtc2Rrcy9nby9m", + "ZHMvcHJvdG9idWYvc3RhY2gvdjOqAhlGYWN0U2V0LlByb3RvYnVmLlN0YWNo", + "LlYzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::FactSet.Protobuf.Stach.V3.TableViewReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Views), global::FactSet.Protobuf.Stach.V3.Views.Parser, new[]{ "Views_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::FactSet.Protobuf.Stach.V3.Views.Types.View), global::FactSet.Protobuf.Stach.V3.Views.Types.View.Parser, new[]{ "Name", "DisplayName", "Table" }, new[]{ "Type" }, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// + ///A set of a metadata specifying one or more views for rendering a table. + /// + public sealed partial class Views : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Views()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.ViewsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Views() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Views(Views other) : this() { + views_ = other.views_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Views Clone() { + return new Views(this); + } + + /// Field number for the "views" field. + public const int Views_FieldNumber = 1; + private static readonly pb::FieldCodec _repeated_views_codec + = pb::FieldCodec.ForMessage(10, global::FactSet.Protobuf.Stach.V3.Views.Types.View.Parser); + private readonly pbc::RepeatedField views_ = new pbc::RepeatedField(); + /// + /// + ///The views. + ///The first view is considered the default view when rendering the table. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Views_ { + get { return views_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Views); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Views other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!views_.Equals(other.views_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= views_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + views_.WriteTo(output, _repeated_views_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += views_.CalculateSize(_repeated_views_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Views other) { + if (other == null) { + return; + } + views_.Add(other.views_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + views_.AddEntriesFrom(input, _repeated_views_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the Views message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// + ///A view for rendering a table. + /// + public sealed partial class View : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new View()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::FactSet.Protobuf.Stach.V3.Views.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public View() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public View(View other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + switch (other.TypeCase) { + case TypeOneofCase.Table: + Table = other.Table.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public View Clone() { + return new View(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// + ///The name of the view. + ///Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// + ///The display name that describes the type of view. + ///This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc. + ///Optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "table" field. + public const int TableFieldNumber = 3; + /// + /// + ///The instructions to render tabular data into a rendered table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::FactSet.Protobuf.Stach.V3.TableView Table { + get { return typeCase_ == TypeOneofCase.Table ? (global::FactSet.Protobuf.Stach.V3.TableView) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Table; + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + Table = 3, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as View); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(View other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (!object.Equals(Table, other.Table)) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (typeCase_ == TypeOneofCase.Table) hash ^= Table.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (typeCase_ == TypeOneofCase.Table) { + output.WriteRawTag(26); + output.WriteMessage(Table); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (typeCase_ == TypeOneofCase.Table) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Table); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(View other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + switch (other.TypeCase) { + case TypeOneofCase.Table: + if (Table == null) { + Table = new global::FactSet.Protobuf.Stach.V3.TableView(); + } + Table.MergeFrom(other.Table); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + global::FactSet.Protobuf.Stach.V3.TableView subBuilder = new global::FactSet.Protobuf.Stach.V3.TableView(); + if (typeCase_ == TypeOneofCase.Table) { + subBuilder.MergeFrom(Table); + } + input.ReadMessage(subBuilder); + Table = subBuilder; + break; + } + } + } + } + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/go/CI/build-sdk.sh b/go/CI/build-sdk.sh index 9a13c00..b832a18 100755 --- a/go/CI/build-sdk.sh +++ b/go/CI/build-sdk.sh @@ -2,9 +2,9 @@ set -e BASE_PATH=/src # Base location of Go generated classes -PACKAGE_PATH=fds/protobuf/stach/v2 +PACKAGE_PATH=fds/protobuf/stach/v3 cd $BASE_PATH/$PACKAGE_PATH go build -echo Built package \ No newline at end of file +echo Built package diff --git a/go/CI/generate-sdk.sh b/go/CI/generate-sdk.sh index 559434c..2a48496 100755 --- a/go/CI/generate-sdk.sh +++ b/go/CI/generate-sdk.sh @@ -3,7 +3,7 @@ set -e SCHEMA_PATH=/schema # Location of Protobuf schema BASE_PATH=/golang # Base location of Go generated classes -PACKAGE_PATH=fds/protobuf/stach/v2 +PACKAGE_PATH=fds/protobuf/stach/v3 rm -f $BASE_PATH/$PACKAGE_PATH/go.mod rm -f $BASE_PATH/$PACKAGE_PATH/go.sum @@ -15,7 +15,7 @@ PROTOFILES=$(find $SCHEMA_PATH/$PACKAGE_PATH -iname "*.proto") protoc --proto_path $SCHEMA_PATH --go_out paths=source_relative:$BASE_PATH $PROTOFILES cd $BASE_PATH/$PACKAGE_PATH -go mod init github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2 +go mod init github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3 go build -echo Produced new generated code \ No newline at end of file +echo Produced new generated code diff --git a/go/fds/protobuf/stach/v2/Package.pb.go b/go/fds/protobuf/stach/v2/Package.pb.go deleted file mode 100644 index 5b82578..0000000 --- a/go/fds/protobuf/stach/v2/Package.pb.go +++ /dev/null @@ -1,193 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/Package.proto - -package v2 - -import ( - table "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A column organized package of tables -type Package struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The version of the STACH schema. Formatted {major}.{minor} - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // The array of primary table ids - PrimaryTableIds []string `protobuf:"bytes,2,rep,name=primary_table_ids,json=primaryTableIds,proto3" json:"primary_table_ids,omitempty"` - // The map (key: table id) of all tables - Tables map[string]*table.Table `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Package) Reset() { - *x = Package{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_Package_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Package) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Package) ProtoMessage() {} - -func (x *Package) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_Package_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Package.ProtoReflect.Descriptor instead. -func (*Package) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_Package_proto_rawDescGZIP(), []int{0} -} - -func (x *Package) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Package) GetPrimaryTableIds() []string { - if x != nil { - return x.PrimaryTableIds - } - return nil -} - -func (x *Package) GetTables() map[string]*table.Table { - if x != nil { - return x.Tables - } - return nil -} - -var File_fds_protobuf_stach_v2_Package_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_Package_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x1a, 0x27, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x01, 0x0a, 0x07, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x12, 0x46, 0x0a, 0x06, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x66, 0x61, - 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x73, 0x1a, 0x61, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x87, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, - 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2f, 0x76, 0x32, 0xaa, 0x02, 0x19, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_Package_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_Package_proto_rawDescData = file_fds_protobuf_stach_v2_Package_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_Package_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_Package_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_Package_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_Package_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_Package_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_Package_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_fds_protobuf_stach_v2_Package_proto_goTypes = []interface{}{ - (*Package)(nil), // 0: factset.protobuf.stach.v2.Package - nil, // 1: factset.protobuf.stach.v2.Package.TablesEntry - (*table.Table)(nil), // 2: factset.protobuf.stach.v2.table.Table -} -var file_fds_protobuf_stach_v2_Package_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.Package.tables:type_name -> factset.protobuf.stach.v2.Package.TablesEntry - 2, // 1: factset.protobuf.stach.v2.Package.TablesEntry.value:type_name -> factset.protobuf.stach.v2.table.Table - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_Package_proto_init() } -func file_fds_protobuf_stach_v2_Package_proto_init() { - if File_fds_protobuf_stach_v2_Package_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_Package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Package); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_Package_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_Package_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_Package_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_Package_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_Package_proto = out.File - file_fds_protobuf_stach_v2_Package_proto_rawDesc = nil - file_fds_protobuf_stach_v2_Package_proto_goTypes = nil - file_fds_protobuf_stach_v2_Package_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/RowOrganized.pb.go b/go/fds/protobuf/stach/v2/RowOrganized.pb.go deleted file mode 100644 index 61f5316..0000000 --- a/go/fds/protobuf/stach/v2/RowOrganized.pb.go +++ /dev/null @@ -1,1146 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/RowOrganized.proto - -package v2 - -import ( - table "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table" - _struct "github.com/golang/protobuf/ptypes/struct" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A type of row -type RowOrganizedPackage_Row_RowType int32 - -const ( - RowOrganizedPackage_Row_Body RowOrganizedPackage_Row_RowType = 0 // A body row - RowOrganizedPackage_Row_Header RowOrganizedPackage_Row_RowType = 1 // A header row -) - -// Enum value maps for RowOrganizedPackage_Row_RowType. -var ( - RowOrganizedPackage_Row_RowType_name = map[int32]string{ - 0: "Body", - 1: "Header", - } - RowOrganizedPackage_Row_RowType_value = map[string]int32{ - "Body": 0, - "Header": 1, - } -) - -func (x RowOrganizedPackage_Row_RowType) Enum() *RowOrganizedPackage_Row_RowType { - p := new(RowOrganizedPackage_Row_RowType) - *p = x - return p -} - -func (x RowOrganizedPackage_Row_RowType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RowOrganizedPackage_Row_RowType) Descriptor() protoreflect.EnumDescriptor { - return file_fds_protobuf_stach_v2_RowOrganized_proto_enumTypes[0].Descriptor() -} - -func (RowOrganizedPackage_Row_RowType) Type() protoreflect.EnumType { - return &file_fds_protobuf_stach_v2_RowOrganized_proto_enumTypes[0] -} - -func (x RowOrganizedPackage_Row_RowType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RowOrganizedPackage_Row_RowType.Descriptor instead. -func (RowOrganizedPackage_Row_RowType) EnumDescriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 4, 0} -} - -// A table where a row is sourced from -type RowOrganizedPackage_HeaderCellDetail_TableSource int32 - -const ( - RowOrganizedPackage_HeaderCellDetail_UNKNOWN RowOrganizedPackage_HeaderCellDetail_TableSource = 0 - RowOrganizedPackage_HeaderCellDetail_NONE RowOrganizedPackage_HeaderCellDetail_TableSource = 1 - RowOrganizedPackage_HeaderCellDetail_PRIMARY RowOrganizedPackage_HeaderCellDetail_TableSource = 2 - RowOrganizedPackage_HeaderCellDetail_HEADERS RowOrganizedPackage_HeaderCellDetail_TableSource = 3 -) - -// Enum value maps for RowOrganizedPackage_HeaderCellDetail_TableSource. -var ( - RowOrganizedPackage_HeaderCellDetail_TableSource_name = map[int32]string{ - 0: "UNKNOWN", - 1: "NONE", - 2: "PRIMARY", - 3: "HEADERS", - } - RowOrganizedPackage_HeaderCellDetail_TableSource_value = map[string]int32{ - "UNKNOWN": 0, - "NONE": 1, - "PRIMARY": 2, - "HEADERS": 3, - } -) - -func (x RowOrganizedPackage_HeaderCellDetail_TableSource) Enum() *RowOrganizedPackage_HeaderCellDetail_TableSource { - p := new(RowOrganizedPackage_HeaderCellDetail_TableSource) - *p = x - return p -} - -func (x RowOrganizedPackage_HeaderCellDetail_TableSource) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RowOrganizedPackage_HeaderCellDetail_TableSource) Descriptor() protoreflect.EnumDescriptor { - return file_fds_protobuf_stach_v2_RowOrganized_proto_enumTypes[1].Descriptor() -} - -func (RowOrganizedPackage_HeaderCellDetail_TableSource) Type() protoreflect.EnumType { - return &file_fds_protobuf_stach_v2_RowOrganized_proto_enumTypes[1] -} - -func (x RowOrganizedPackage_HeaderCellDetail_TableSource) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RowOrganizedPackage_HeaderCellDetail_TableSource.Descriptor instead. -func (RowOrganizedPackage_HeaderCellDetail_TableSource) EnumDescriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 6, 0} -} - -// A row organized package of tables -type RowOrganizedPackage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The version of the STACH schema. Formatted {major}.{minor} - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // The map (key: table id) of all tables - Tables map[string]*RowOrganizedPackage_Table `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *RowOrganizedPackage) Reset() { - *x = RowOrganizedPackage{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage) ProtoMessage() {} - -func (x *RowOrganizedPackage) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0} -} - -func (x *RowOrganizedPackage) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *RowOrganizedPackage) GetTables() map[string]*RowOrganizedPackage_Table { - if x != nil { - return x.Tables - } - return nil -} - -// A row organized table -type RowOrganizedPackage_Table struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The definition - Definition *RowOrganizedPackage_TableDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"` - // The headers definition - HeadersDefinition *RowOrganizedPackage_TableDefinition `protobuf:"bytes,2,opt,name=headers_definition,json=headersDefinition,proto3" json:"headers_definition,omitempty"` - // The data - Data *RowOrganizedPackage_TableData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *RowOrganizedPackage_Table) Reset() { - *x = RowOrganizedPackage_Table{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_Table) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_Table) ProtoMessage() {} - -func (x *RowOrganizedPackage_Table) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_Table.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_Table) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 1} -} - -func (x *RowOrganizedPackage_Table) GetDefinition() *RowOrganizedPackage_TableDefinition { - if x != nil { - return x.Definition - } - return nil -} - -func (x *RowOrganizedPackage_Table) GetHeadersDefinition() *RowOrganizedPackage_TableDefinition { - if x != nil { - return x.HeadersDefinition - } - return nil -} - -func (x *RowOrganizedPackage_Table) GetData() *RowOrganizedPackage_TableData { - if x != nil { - return x.Data - } - return nil -} - -// A table definition -type RowOrganizedPackage_TableDefinition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The column definitions - Columns []*table.ColumnDefinition `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` -} - -func (x *RowOrganizedPackage_TableDefinition) Reset() { - *x = RowOrganizedPackage_TableDefinition{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_TableDefinition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_TableDefinition) ProtoMessage() {} - -func (x *RowOrganizedPackage_TableDefinition) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_TableDefinition.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_TableDefinition) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 2} -} - -func (x *RowOrganizedPackage_TableDefinition) GetColumns() []*table.ColumnDefinition { - if x != nil { - return x.Columns - } - return nil -} - -// A table data -type RowOrganizedPackage_TableData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The rows - Rows []*RowOrganizedPackage_Row `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"` - // The map (key: metadataitem id) of metadata at the table location - TableMetadata map[string]*table.MetadataItem `protobuf:"bytes,2,rep,name=table_metadata,json=tableMetadata,proto3" json:"table_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The map (key: column id) of metadata at the column location - ColumnMetadata map[string]*RowOrganizedPackage_MapOfMetadata `protobuf:"bytes,3,rep,name=column_metadata,json=columnMetadata,proto3" json:"column_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *RowOrganizedPackage_TableData) Reset() { - *x = RowOrganizedPackage_TableData{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_TableData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_TableData) ProtoMessage() {} - -func (x *RowOrganizedPackage_TableData) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_TableData.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_TableData) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 3} -} - -func (x *RowOrganizedPackage_TableData) GetRows() []*RowOrganizedPackage_Row { - if x != nil { - return x.Rows - } - return nil -} - -func (x *RowOrganizedPackage_TableData) GetTableMetadata() map[string]*table.MetadataItem { - if x != nil { - return x.TableMetadata - } - return nil -} - -func (x *RowOrganizedPackage_TableData) GetColumnMetadata() map[string]*RowOrganizedPackage_MapOfMetadata { - if x != nil { - return x.ColumnMetadata - } - return nil -} - -// A row -type RowOrganizedPackage_Row struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The row id - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The row type - RowType RowOrganizedPackage_Row_RowType `protobuf:"varint,2,opt,name=row_type,json=rowType,proto3,enum=factset.protobuf.stach.v2.RowOrganizedPackage_Row_RowType" json:"row_type,omitempty"` - // Types that are assignable to Kind: - // *RowOrganizedPackage_Row_Cells - // *RowOrganizedPackage_Row_Values - Kind isRowOrganizedPackage_Row_Kind `protobuf_oneof:"kind"` - // The details for a body row cell - CellDetails map[string]*RowOrganizedPackage_CellDetail `protobuf:"bytes,5,rep,name=cell_details,json=cellDetails,proto3" json:"cell_details,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The details for a header row cell - HeaderCellDetails map[string]*RowOrganizedPackage_HeaderCellDetail `protobuf:"bytes,6,rep,name=header_cell_details,json=headerCellDetails,proto3" json:"header_cell_details,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The map (key: metadataitem id) of metadata at the row location - RowMetadata map[string]*table.MetadataItem `protobuf:"bytes,7,rep,name=row_metadata,json=rowMetadata,proto3" json:"row_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *RowOrganizedPackage_Row) Reset() { - *x = RowOrganizedPackage_Row{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_Row) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_Row) ProtoMessage() {} - -func (x *RowOrganizedPackage_Row) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_Row.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_Row) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 4} -} - -func (x *RowOrganizedPackage_Row) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *RowOrganizedPackage_Row) GetRowType() RowOrganizedPackage_Row_RowType { - if x != nil { - return x.RowType - } - return RowOrganizedPackage_Row_Body -} - -func (m *RowOrganizedPackage_Row) GetKind() isRowOrganizedPackage_Row_Kind { - if m != nil { - return m.Kind - } - return nil -} - -func (x *RowOrganizedPackage_Row) GetCells() *_struct.ListValue { - if x, ok := x.GetKind().(*RowOrganizedPackage_Row_Cells); ok { - return x.Cells - } - return nil -} - -func (x *RowOrganizedPackage_Row) GetValues() *_struct.Struct { - if x, ok := x.GetKind().(*RowOrganizedPackage_Row_Values); ok { - return x.Values - } - return nil -} - -func (x *RowOrganizedPackage_Row) GetCellDetails() map[string]*RowOrganizedPackage_CellDetail { - if x != nil { - return x.CellDetails - } - return nil -} - -func (x *RowOrganizedPackage_Row) GetHeaderCellDetails() map[string]*RowOrganizedPackage_HeaderCellDetail { - if x != nil { - return x.HeaderCellDetails - } - return nil -} - -func (x *RowOrganizedPackage_Row) GetRowMetadata() map[string]*table.MetadataItem { - if x != nil { - return x.RowMetadata - } - return nil -} - -type isRowOrganizedPackage_Row_Kind interface { - isRowOrganizedPackage_Row_Kind() -} - -type RowOrganizedPackage_Row_Cells struct { - // The list of cell values - Cells *_struct.ListValue `protobuf:"bytes,3,opt,name=cells,proto3,oneof"` -} - -type RowOrganizedPackage_Row_Values struct { - // The map of cell values - Values *_struct.Struct `protobuf:"bytes,4,opt,name=values,proto3,oneof"` -} - -func (*RowOrganizedPackage_Row_Cells) isRowOrganizedPackage_Row_Kind() {} - -func (*RowOrganizedPackage_Row_Values) isRowOrganizedPackage_Row_Kind() {} - -// A body row cell detail -type RowOrganizedPackage_CellDetail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The group level - GroupLevel int32 `protobuf:"varint,1,opt,name=group_level,json=groupLevel,proto3" json:"group_level,omitempty"` - // The definition of the cell; overrides the column definition - CellDefinition *table.CellDefinition `protobuf:"bytes,2,opt,name=cell_definition,json=cellDefinition,proto3" json:"cell_definition,omitempty"` - // The map (key: metadataitem id) of metadata at the cell location - CellMetadata map[string]*table.MetadataItem `protobuf:"bytes,3,rep,name=cell_metadata,json=cellMetadata,proto3" json:"cell_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *RowOrganizedPackage_CellDetail) Reset() { - *x = RowOrganizedPackage_CellDetail{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_CellDetail) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_CellDetail) ProtoMessage() {} - -func (x *RowOrganizedPackage_CellDetail) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_CellDetail.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_CellDetail) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 5} -} - -func (x *RowOrganizedPackage_CellDetail) GetGroupLevel() int32 { - if x != nil { - return x.GroupLevel - } - return 0 -} - -func (x *RowOrganizedPackage_CellDetail) GetCellDefinition() *table.CellDefinition { - if x != nil { - return x.CellDefinition - } - return nil -} - -func (x *RowOrganizedPackage_CellDetail) GetCellMetadata() map[string]*table.MetadataItem { - if x != nil { - return x.CellMetadata - } - return nil -} - -// A header row cell detail -type RowOrganizedPackage_HeaderCellDetail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The column span - Colspan int32 `protobuf:"varint,1,opt,name=colspan,proto3" json:"colspan,omitempty"` - // The row span - Rowspan int32 `protobuf:"varint,2,opt,name=rowspan,proto3" json:"rowspan,omitempty"` - // The table where the row is sourced from - Source RowOrganizedPackage_HeaderCellDetail_TableSource `protobuf:"varint,3,opt,name=source,proto3,enum=factset.protobuf.stach.v2.RowOrganizedPackage_HeaderCellDetail_TableSource" json:"source,omitempty"` - // The column index; used to index into the `headers_definition.columns` array - ColumnIndex int32 `protobuf:"varint,4,opt,name=column_index,json=columnIndex,proto3" json:"column_index,omitempty"` - // The definition of the cell; overrides the column definition - CellDefinition *table.CellDefinition `protobuf:"bytes,5,opt,name=cell_definition,json=cellDefinition,proto3" json:"cell_definition,omitempty"` - // The map (key: metadataitem id) of metadata at the cell location - CellMetadata map[string]*table.MetadataItem `protobuf:"bytes,6,rep,name=cell_metadata,json=cellMetadata,proto3" json:"cell_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *RowOrganizedPackage_HeaderCellDetail) Reset() { - *x = RowOrganizedPackage_HeaderCellDetail{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_HeaderCellDetail) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_HeaderCellDetail) ProtoMessage() {} - -func (x *RowOrganizedPackage_HeaderCellDetail) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_HeaderCellDetail.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_HeaderCellDetail) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 6} -} - -func (x *RowOrganizedPackage_HeaderCellDetail) GetColspan() int32 { - if x != nil { - return x.Colspan - } - return 0 -} - -func (x *RowOrganizedPackage_HeaderCellDetail) GetRowspan() int32 { - if x != nil { - return x.Rowspan - } - return 0 -} - -func (x *RowOrganizedPackage_HeaderCellDetail) GetSource() RowOrganizedPackage_HeaderCellDetail_TableSource { - if x != nil { - return x.Source - } - return RowOrganizedPackage_HeaderCellDetail_UNKNOWN -} - -func (x *RowOrganizedPackage_HeaderCellDetail) GetColumnIndex() int32 { - if x != nil { - return x.ColumnIndex - } - return 0 -} - -func (x *RowOrganizedPackage_HeaderCellDetail) GetCellDefinition() *table.CellDefinition { - if x != nil { - return x.CellDefinition - } - return nil -} - -func (x *RowOrganizedPackage_HeaderCellDetail) GetCellMetadata() map[string]*table.MetadataItem { - if x != nil { - return x.CellMetadata - } - return nil -} - -// A wrapper for a map of metadata items -type RowOrganizedPackage_MapOfMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The map (key: metadataitem id) metadata - Items map[string]*table.MetadataItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *RowOrganizedPackage_MapOfMetadata) Reset() { - *x = RowOrganizedPackage_MapOfMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowOrganizedPackage_MapOfMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowOrganizedPackage_MapOfMetadata) ProtoMessage() {} - -func (x *RowOrganizedPackage_MapOfMetadata) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowOrganizedPackage_MapOfMetadata.ProtoReflect.Descriptor instead. -func (*RowOrganizedPackage_MapOfMetadata) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP(), []int{0, 7} -} - -func (x *RowOrganizedPackage_MapOfMetadata) GetItems() map[string]*table.MetadataItem { - if x != nil { - return x.Items - } - return nil -} - -var File_fds_protobuf_stach_v2_RowOrganized_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_RowOrganized_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, - 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, - 0x63, 0x68, 0x2e, 0x76, 0x32, 0x1a, 0x2e, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2f, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x1a, 0x0a, 0x13, 0x52, 0x6f, - 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x06, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x66, 0x61, - 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, - 0x6f, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x4a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x34, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, - 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0xa4, 0x02, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, - 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, - 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, - 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x12, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x44, - 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x5e, 0x0a, 0x0f, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x07, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, 0x61, - 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x1a, 0xb0, 0x04, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x2e, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x72, 0x0a, - 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x75, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x6f, 0x0a, 0x12, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x43, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x7f, 0x0a, 0x13, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x52, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3c, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, - 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xb9, 0x07, 0x0a, 0x03, 0x52, - 0x6f, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x55, 0x0a, 0x08, 0x72, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x6f, 0x77, 0x2e, 0x52, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x07, 0x72, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x63, 0x65, 0x6c, - 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x31, 0x0a, - 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x66, 0x0a, 0x0c, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x6f, 0x77, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x63, 0x65, 0x6c, - 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x79, 0x0a, 0x13, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x5f, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x6f, 0x77, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x11, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x12, 0x66, 0x0a, 0x0c, 0x72, 0x6f, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x61, 0x63, 0x74, - 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, - 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, - 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x6f, 0x77, 0x2e, 0x52, 0x6f, - 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, - 0x72, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x79, 0x0a, 0x10, 0x43, - 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x4f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x39, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, - 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x85, 0x01, 0x0a, 0x16, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x55, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, - 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6d, - 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, - 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1f, 0x0a, - 0x07, 0x52, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, - 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x01, 0x42, 0x06, - 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x1a, 0xe9, 0x02, 0x0a, 0x0a, 0x43, 0x65, 0x6c, 0x6c, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x58, 0x0a, 0x0f, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2f, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0e, 0x63, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x70, 0x0a, 0x0d, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x1a, 0x6e, 0x0a, 0x11, 0x43, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0xd0, 0x04, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x65, 0x6c, - 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x73, 0x70, - 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x73, 0x70, 0x61, - 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x6f, 0x77, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x07, 0x72, 0x6f, 0x77, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x63, 0x0a, 0x06, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4b, 0x2e, 0x66, 0x61, - 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x12, 0x58, 0x0a, 0x0f, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, - 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x63, - 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x76, 0x0a, - 0x0d, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x51, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x6e, 0x0a, 0x11, 0x43, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x61, - 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3e, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, - 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, - 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x48, 0x45, 0x41, 0x44, - 0x45, 0x52, 0x53, 0x10, 0x03, 0x1a, 0xd7, 0x01, 0x0a, 0x0d, 0x4d, 0x61, 0x70, 0x4f, 0x66, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x67, 0x0a, 0x0a, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, - 0x8c, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x42, 0x11, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, - 0x76, 0x32, 0xaa, 0x02, 0x19, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescData = file_fds_protobuf_stach_v2_RowOrganized_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_RowOrganized_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_RowOrganized_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_fds_protobuf_stach_v2_RowOrganized_proto_goTypes = []interface{}{ - (RowOrganizedPackage_Row_RowType)(0), // 0: factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType - (RowOrganizedPackage_HeaderCellDetail_TableSource)(0), // 1: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource - (*RowOrganizedPackage)(nil), // 2: factset.protobuf.stach.v2.RowOrganizedPackage - nil, // 3: factset.protobuf.stach.v2.RowOrganizedPackage.TablesEntry - (*RowOrganizedPackage_Table)(nil), // 4: factset.protobuf.stach.v2.RowOrganizedPackage.Table - (*RowOrganizedPackage_TableDefinition)(nil), // 5: factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition - (*RowOrganizedPackage_TableData)(nil), // 6: factset.protobuf.stach.v2.RowOrganizedPackage.TableData - (*RowOrganizedPackage_Row)(nil), // 7: factset.protobuf.stach.v2.RowOrganizedPackage.Row - (*RowOrganizedPackage_CellDetail)(nil), // 8: factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail - (*RowOrganizedPackage_HeaderCellDetail)(nil), // 9: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - (*RowOrganizedPackage_MapOfMetadata)(nil), // 10: factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - nil, // 11: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.TableMetadataEntry - nil, // 12: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.ColumnMetadataEntry - nil, // 13: factset.protobuf.stach.v2.RowOrganizedPackage.Row.CellDetailsEntry - nil, // 14: factset.protobuf.stach.v2.RowOrganizedPackage.Row.HeaderCellDetailsEntry - nil, // 15: factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowMetadataEntry - nil, // 16: factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.CellMetadataEntry - nil, // 17: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.CellMetadataEntry - nil, // 18: factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.ItemsEntry - (*table.ColumnDefinition)(nil), // 19: factset.protobuf.stach.v2.table.ColumnDefinition - (*_struct.ListValue)(nil), // 20: google.protobuf.ListValue - (*_struct.Struct)(nil), // 21: google.protobuf.Struct - (*table.CellDefinition)(nil), // 22: factset.protobuf.stach.v2.table.CellDefinition - (*table.MetadataItem)(nil), // 23: factset.protobuf.stach.v2.table.MetadataItem -} -var file_fds_protobuf_stach_v2_RowOrganized_proto_depIdxs = []int32{ - 3, // 0: factset.protobuf.stach.v2.RowOrganizedPackage.tables:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.TablesEntry - 4, // 1: factset.protobuf.stach.v2.RowOrganizedPackage.TablesEntry.value:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.Table - 5, // 2: factset.protobuf.stach.v2.RowOrganizedPackage.Table.definition:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition - 5, // 3: factset.protobuf.stach.v2.RowOrganizedPackage.Table.headers_definition:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition - 6, // 4: factset.protobuf.stach.v2.RowOrganizedPackage.Table.data:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.TableData - 19, // 5: factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.columns:type_name -> factset.protobuf.stach.v2.table.ColumnDefinition - 7, // 6: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.rows:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.Row - 11, // 7: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.table_metadata:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.TableData.TableMetadataEntry - 12, // 8: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.column_metadata:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.TableData.ColumnMetadataEntry - 0, // 9: factset.protobuf.stach.v2.RowOrganizedPackage.Row.row_type:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType - 20, // 10: factset.protobuf.stach.v2.RowOrganizedPackage.Row.cells:type_name -> google.protobuf.ListValue - 21, // 11: factset.protobuf.stach.v2.RowOrganizedPackage.Row.values:type_name -> google.protobuf.Struct - 13, // 12: factset.protobuf.stach.v2.RowOrganizedPackage.Row.cell_details:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.Row.CellDetailsEntry - 14, // 13: factset.protobuf.stach.v2.RowOrganizedPackage.Row.header_cell_details:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.Row.HeaderCellDetailsEntry - 15, // 14: factset.protobuf.stach.v2.RowOrganizedPackage.Row.row_metadata:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowMetadataEntry - 22, // 15: factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.cell_definition:type_name -> factset.protobuf.stach.v2.table.CellDefinition - 16, // 16: factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.cell_metadata:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.CellMetadataEntry - 1, // 17: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.source:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource - 22, // 18: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.cell_definition:type_name -> factset.protobuf.stach.v2.table.CellDefinition - 17, // 19: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.cell_metadata:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.CellMetadataEntry - 18, // 20: factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.items:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.ItemsEntry - 23, // 21: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.TableMetadataEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataItem - 10, // 22: factset.protobuf.stach.v2.RowOrganizedPackage.TableData.ColumnMetadataEntry.value:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - 8, // 23: factset.protobuf.stach.v2.RowOrganizedPackage.Row.CellDetailsEntry.value:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail - 9, // 24: factset.protobuf.stach.v2.RowOrganizedPackage.Row.HeaderCellDetailsEntry.value:type_name -> factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - 23, // 25: factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowMetadataEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataItem - 23, // 26: factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.CellMetadataEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataItem - 23, // 27: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.CellMetadataEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataItem - 23, // 28: factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.ItemsEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataItem - 29, // [29:29] is the sub-list for method output_type - 29, // [29:29] is the sub-list for method input_type - 29, // [29:29] is the sub-list for extension type_name - 29, // [29:29] is the sub-list for extension extendee - 0, // [0:29] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_RowOrganized_proto_init() } -func file_fds_protobuf_stach_v2_RowOrganized_proto_init() { - if File_fds_protobuf_stach_v2_RowOrganized_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_Table); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_TableDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_TableData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_Row); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_CellDetail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_HeaderCellDetail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowOrganizedPackage_MapOfMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*RowOrganizedPackage_Row_Cells)(nil), - (*RowOrganizedPackage_Row_Values)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_RowOrganized_proto_rawDesc, - NumEnums: 2, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_RowOrganized_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_RowOrganized_proto_depIdxs, - EnumInfos: file_fds_protobuf_stach_v2_RowOrganized_proto_enumTypes, - MessageInfos: file_fds_protobuf_stach_v2_RowOrganized_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_RowOrganized_proto = out.File - file_fds_protobuf_stach_v2_RowOrganized_proto_rawDesc = nil - file_fds_protobuf_stach_v2_RowOrganized_proto_goTypes = nil - file_fds_protobuf_stach_v2_RowOrganized_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/go.sum b/go/fds/protobuf/stach/v2/go.sum deleted file mode 100644 index b0a3900..0000000 --- a/go/fds/protobuf/stach/v2/go.sum +++ /dev/null @@ -1,65 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/go/fds/protobuf/stach/v2/table/CellDefinition.pb.go b/go/fds/protobuf/stach/v2/table/CellDefinition.pb.go deleted file mode 100644 index c0ca6e7..0000000 --- a/go/fds/protobuf/stach/v2/table/CellDefinition.pb.go +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/CellDefinition.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A cell definition -// -// Overrides the column and row definition -type CellDefinition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type` - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - // The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format` - Format *DataFormat `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` -} - -func (x *CellDefinition) Reset() { - *x = CellDefinition{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_CellDefinition_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CellDefinition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CellDefinition) ProtoMessage() {} - -func (x *CellDefinition) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_CellDefinition_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CellDefinition.ProtoReflect.Descriptor instead. -func (*CellDefinition) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescGZIP(), []int{0} -} - -func (x *CellDefinition) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *CellDefinition) GetFormat() *DataFormat { - if x != nil { - return x.Format - } - return nil -} - -var File_fds_protobuf_stach_v2_table_CellDefinition_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x43, 0x65, - 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x1a, 0x2c, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x2f, 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x69, 0x0a, 0x0e, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0xa0, 0x01, 0x0a, - 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x42, 0x13, 0x43, 0x65, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, - 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, - 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescData = file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_CellDefinition_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_CellDefinition_proto_goTypes = []interface{}{ - (*CellDefinition)(nil), // 0: factset.protobuf.stach.v2.table.CellDefinition - (*DataFormat)(nil), // 1: factset.protobuf.stach.v2.table.DataFormat -} -var file_fds_protobuf_stach_v2_table_CellDefinition_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.CellDefinition.format:type_name -> factset.protobuf.stach.v2.table.DataFormat - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_CellDefinition_proto_init() } -func file_fds_protobuf_stach_v2_table_CellDefinition_proto_init() { - if File_fds_protobuf_stach_v2_table_CellDefinition_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_DataFormat_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_CellDefinition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CellDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_CellDefinition_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_CellDefinition_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_CellDefinition_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_CellDefinition_proto = out.File - file_fds_protobuf_stach_v2_table_CellDefinition_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_CellDefinition_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_CellDefinition_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/ColumnData.pb.go b/go/fds/protobuf/stach/v2/table/ColumnData.pb.go deleted file mode 100644 index 8865cd8..0000000 --- a/go/fds/protobuf/stach/v2/table/ColumnData.pb.go +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/ColumnData.proto - -package table - -import ( - _struct "github.com/golang/protobuf/ptypes/struct" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// An array of column data -// -// The type chosen correlates to the data type of the `ColumnDefinition.type` -type ColumnData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The map (key: uncompressed index, value: length to repeat the value) used during compression - Ranges map[int32]int32 `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // The values - Values *_struct.ListValue `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"` - // The cell definitions - Definitions []*CellDefinition `protobuf:"bytes,3,rep,name=definitions,proto3" json:"definitions,omitempty"` -} - -func (x *ColumnData) Reset() { - *x = ColumnData{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_ColumnData_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ColumnData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ColumnData) ProtoMessage() {} - -func (x *ColumnData) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_ColumnData_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ColumnData.ProtoReflect.Descriptor instead. -func (*ColumnData) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescGZIP(), []int{0} -} - -func (x *ColumnData) GetRanges() map[int32]int32 { - if x != nil { - return x.Ranges - } - return nil -} - -func (x *ColumnData) GetValues() *_struct.ListValue { - if x != nil { - return x.Values - } - return nil -} - -func (x *ColumnData) GetDefinitions() []*CellDefinition { - if x != nil { - return x.Definitions - } - return nil -} - -var File_fds_protobuf_stach_v2_table_ColumnData_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, - 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, - 0x30, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x43, 0x65, 0x6c, - 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x9f, 0x02, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x4f, - 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, - 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, - 0x32, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x44, - 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x42, 0x9c, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0f, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, - 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, - 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescData = file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_ColumnData_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_fds_protobuf_stach_v2_table_ColumnData_proto_goTypes = []interface{}{ - (*ColumnData)(nil), // 0: factset.protobuf.stach.v2.table.ColumnData - nil, // 1: factset.protobuf.stach.v2.table.ColumnData.RangesEntry - (*_struct.ListValue)(nil), // 2: google.protobuf.ListValue - (*CellDefinition)(nil), // 3: factset.protobuf.stach.v2.table.CellDefinition -} -var file_fds_protobuf_stach_v2_table_ColumnData_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.ColumnData.ranges:type_name -> factset.protobuf.stach.v2.table.ColumnData.RangesEntry - 2, // 1: factset.protobuf.stach.v2.table.ColumnData.values:type_name -> google.protobuf.ListValue - 3, // 2: factset.protobuf.stach.v2.table.ColumnData.definitions:type_name -> factset.protobuf.stach.v2.table.CellDefinition - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_ColumnData_proto_init() } -func file_fds_protobuf_stach_v2_table_ColumnData_proto_init() { - if File_fds_protobuf_stach_v2_table_ColumnData_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_CellDefinition_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_ColumnData_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_ColumnData_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_ColumnData_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_ColumnData_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_ColumnData_proto = out.File - file_fds_protobuf_stach_v2_table_ColumnData_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_ColumnData_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_ColumnData_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/ColumnDefinition.pb.go b/go/fds/protobuf/stach/v2/table/ColumnDefinition.pb.go deleted file mode 100644 index 8dbd10d..0000000 --- a/go/fds/protobuf/stach/v2/table/ColumnDefinition.pb.go +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/ColumnDefinition.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A definition of a column -type ColumnDefinition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The id; used for referring to a column internal to a package - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The name; used for referring to a column external to a package - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // The description; used for rendering human readable headers - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // The data type; correlates with the chosen property for `ColumnData.data` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - // Whether this column is a dimension or not - IsDimension bool `protobuf:"varint,5,opt,name=is_dimension,json=isDimension,proto3" json:"is_dimension,omitempty"` - // Whether this column is hidden or not - IsHidden bool `protobuf:"varint,6,opt,name=is_hidden,json=isHidden,proto3" json:"is_hidden,omitempty"` - // The next sibling column in the collapsed column tree - NextSiblingId string `protobuf:"bytes,7,opt,name=next_sibling_id,json=nextSiblingId,proto3" json:"next_sibling_id,omitempty"` - // The parent column in the collapsed column tree - ParentId string `protobuf:"bytes,8,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` - // The header id - HeaderId string `protobuf:"bytes,9,opt,name=header_id,json=headerId,proto3" json:"header_id,omitempty"` - // The data format - Format *DataFormat `protobuf:"bytes,10,opt,name=format,proto3" json:"format,omitempty"` -} - -func (x *ColumnDefinition) Reset() { - *x = ColumnDefinition{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ColumnDefinition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ColumnDefinition) ProtoMessage() {} - -func (x *ColumnDefinition) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ColumnDefinition.ProtoReflect.Descriptor instead. -func (*ColumnDefinition) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescGZIP(), []int{0} -} - -func (x *ColumnDefinition) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ColumnDefinition) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ColumnDefinition) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *ColumnDefinition) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *ColumnDefinition) GetIsDimension() bool { - if x != nil { - return x.IsDimension - } - return false -} - -func (x *ColumnDefinition) GetIsHidden() bool { - if x != nil { - return x.IsHidden - } - return false -} - -func (x *ColumnDefinition) GetNextSiblingId() string { - if x != nil { - return x.NextSiblingId - } - return "" -} - -func (x *ColumnDefinition) GetParentId() string { - if x != nil { - return x.ParentId - } - return "" -} - -func (x *ColumnDefinition) GetHeaderId() string { - if x != nil { - return x.HeaderId - } - return "" -} - -func (x *ColumnDefinition) GetFormat() *DataFormat { - if x != nil { - return x.Format - } - return nil -} - -var File_fds_protobuf_stach_v2_table_ColumnDefinition_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDesc = []byte{ - 0x0a, 0x32, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x2c, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x02, 0x0a, 0x10, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x44, 0x69, 0x6d, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x68, 0x69, 0x64, 0x64, - 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x48, 0x69, 0x64, 0x64, - 0x65, 0x6e, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x69, 0x62, 0x6c, 0x69, - 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, - 0x74, 0x53, 0x69, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, - 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0xa2, 0x01, 0x0a, 0x23, 0x63, 0x6f, - 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x42, 0x15, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, - 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, - 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, - 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescData = file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_goTypes = []interface{}{ - (*ColumnDefinition)(nil), // 0: factset.protobuf.stach.v2.table.ColumnDefinition - (*DataFormat)(nil), // 1: factset.protobuf.stach.v2.table.DataFormat -} -var file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.ColumnDefinition.format:type_name -> factset.protobuf.stach.v2.table.DataFormat - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_init() } -func file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_init() { - if File_fds_protobuf_stach_v2_table_ColumnDefinition_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_DataFormat_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_ColumnDefinition_proto = out.File - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/DataFormat.pb.go b/go/fds/protobuf/stach/v2/table/DataFormat.pb.go deleted file mode 100644 index 4a69dfe..0000000 --- a/go/fds/protobuf/stach/v2/table/DataFormat.pb.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/DataFormat.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A data format -type DataFormat struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The format - Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` - // The null format - NullFormat string `protobuf:"bytes,2,opt,name=null_format,json=nullFormat,proto3" json:"null_format,omitempty"` - // The horizontal alignment - Halign HorizontalAlignment `protobuf:"varint,3,opt,name=halign,proto3,enum=factset.protobuf.stach.v2.table.HorizontalAlignment" json:"halign,omitempty"` - // The vertical alignment - Valign VerticalAlignment `protobuf:"varint,4,opt,name=valign,proto3,enum=factset.protobuf.stach.v2.table.VerticalAlignment" json:"valign,omitempty"` -} - -func (x *DataFormat) Reset() { - *x = DataFormat{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_DataFormat_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DataFormat) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DataFormat) ProtoMessage() {} - -func (x *DataFormat) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_DataFormat_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DataFormat.ProtoReflect.Descriptor instead. -func (*DataFormat) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescGZIP(), []int{0} -} - -func (x *DataFormat) GetFormat() string { - if x != nil { - return x.Format - } - return "" -} - -func (x *DataFormat) GetNullFormat() string { - if x != nil { - return x.NullFormat - } - return "" -} - -func (x *DataFormat) GetHalign() HorizontalAlignment { - if x != nil { - return x.Halign - } - return HorizontalAlignment_UNKNOWN_HALIGN -} - -func (x *DataFormat) GetValign() VerticalAlignment { - if x != nil { - return x.Valign - } - return VerticalAlignment_UNKNOWN_VALIGN -} - -var File_fds_protobuf_stach_v2_table_DataFormat_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x44, 0x61, - 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, - 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, - 0x35, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x48, 0x6f, 0x72, - 0x69, 0x7a, 0x6f, 0x6e, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x2f, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x0a, - 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x46, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x68, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x48, 0x6f, 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x74, 0x61, 0x6c, - 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x68, 0x61, 0x6c, 0x69, 0x67, - 0x6e, 0x12, 0x4a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x32, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x42, 0x9c, 0x01, - 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, - 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, - 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, - 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescData = file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_DataFormat_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_DataFormat_proto_goTypes = []interface{}{ - (*DataFormat)(nil), // 0: factset.protobuf.stach.v2.table.DataFormat - (HorizontalAlignment)(0), // 1: factset.protobuf.stach.v2.table.HorizontalAlignment - (VerticalAlignment)(0), // 2: factset.protobuf.stach.v2.table.VerticalAlignment -} -var file_fds_protobuf_stach_v2_table_DataFormat_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.DataFormat.halign:type_name -> factset.protobuf.stach.v2.table.HorizontalAlignment - 2, // 1: factset.protobuf.stach.v2.table.DataFormat.valign:type_name -> factset.protobuf.stach.v2.table.VerticalAlignment - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_DataFormat_proto_init() } -func file_fds_protobuf_stach_v2_table_DataFormat_proto_init() { - if File_fds_protobuf_stach_v2_table_DataFormat_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_init() - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_DataFormat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataFormat); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_DataFormat_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_DataFormat_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_DataFormat_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_DataFormat_proto = out.File - file_fds_protobuf_stach_v2_table_DataFormat_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_DataFormat_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_DataFormat_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/HorizontalAlignment.pb.go b/go/fds/protobuf/stach/v2/table/HorizontalAlignment.pb.go deleted file mode 100644 index 4fa9ef6..0000000 --- a/go/fds/protobuf/stach/v2/table/HorizontalAlignment.pb.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/HorizontalAlignment.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A horizontal alignment -type HorizontalAlignment int32 - -const ( - HorizontalAlignment_UNKNOWN_HALIGN HorizontalAlignment = 0 // This value should never be used, but exists to ensure that a value is specified - HorizontalAlignment_LEFT HorizontalAlignment = 1 // Value is horizontally aligned to the left of the cell - HorizontalAlignment_CENTER HorizontalAlignment = 2 // Value is horizontally aligned in the center of the cell - HorizontalAlignment_RIGHT HorizontalAlignment = 3 // Value is horizontally aligned to the right of the cell -) - -// Enum value maps for HorizontalAlignment. -var ( - HorizontalAlignment_name = map[int32]string{ - 0: "UNKNOWN_HALIGN", - 1: "LEFT", - 2: "CENTER", - 3: "RIGHT", - } - HorizontalAlignment_value = map[string]int32{ - "UNKNOWN_HALIGN": 0, - "LEFT": 1, - "CENTER": 2, - "RIGHT": 3, - } -) - -func (x HorizontalAlignment) Enum() *HorizontalAlignment { - p := new(HorizontalAlignment) - *p = x - return p -} - -func (x HorizontalAlignment) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (HorizontalAlignment) Descriptor() protoreflect.EnumDescriptor { - return file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_enumTypes[0].Descriptor() -} - -func (HorizontalAlignment) Type() protoreflect.EnumType { - return &file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_enumTypes[0] -} - -func (x HorizontalAlignment) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use HorizontalAlignment.Descriptor instead. -func (HorizontalAlignment) EnumDescriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescGZIP(), []int{0} -} - -var File_fds_protobuf_stach_v2_table_HorizontalAlignment_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDesc = []byte{ - 0x0a, 0x35, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x48, 0x6f, - 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2a, 0x4a, 0x0a, 0x13, 0x48, 0x6f, 0x72, 0x69, - 0x7a, 0x6f, 0x6e, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x48, 0x41, 0x4c, 0x49, 0x47, - 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x45, 0x46, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, - 0x06, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x49, 0x47, - 0x48, 0x54, 0x10, 0x03, 0x42, 0xa5, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x18, 0x48, 0x6f, - 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, - 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, - 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescData = file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_goTypes = []interface{}{ - (HorizontalAlignment)(0), // 0: factset.protobuf.stach.v2.table.HorizontalAlignment -} -var file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_init() } -func file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_init() { - if File_fds_protobuf_stach_v2_table_HorizontalAlignment_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDesc, - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_depIdxs, - EnumInfos: file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_enumTypes, - }.Build() - File_fds_protobuf_stach_v2_table_HorizontalAlignment_proto = out.File - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_HorizontalAlignment_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/ListOfMetadata.pb.go b/go/fds/protobuf/stach/v2/table/ListOfMetadata.pb.go deleted file mode 100644 index 4c469b2..0000000 --- a/go/fds/protobuf/stach/v2/table/ListOfMetadata.pb.go +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/ListOfMetadata.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A list of metadata ids -type ListOfMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of metadata ids - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *ListOfMetadata) Reset() { - *x = ListOfMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListOfMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListOfMetadata) ProtoMessage() {} - -func (x *ListOfMetadata) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListOfMetadata.ProtoReflect.Descriptor instead. -func (*ListOfMetadata) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescGZIP(), []int{0} -} - -func (x *ListOfMetadata) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -var File_fds_protobuf_stach_v2_table_ListOfMetadata_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4c, 0x69, - 0x73, 0x74, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x22, 0x22, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x66, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x42, 0xa0, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, - 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, - 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, - 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescData = file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_goTypes = []interface{}{ - (*ListOfMetadata)(nil), // 0: factset.protobuf.stach.v2.table.ListOfMetadata -} -var file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_init() } -func file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_init() { - if File_fds_protobuf_stach_v2_table_ListOfMetadata_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListOfMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_ListOfMetadata_proto = out.File - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/MetadataCollection.pb.go b/go/fds/protobuf/stach/v2/table/MetadataCollection.pb.go deleted file mode 100644 index b9d447b..0000000 --- a/go/fds/protobuf/stach/v2/table/MetadataCollection.pb.go +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/MetadataCollection.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A collection of metadata for a table -type MetadataCollection struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The metadata items associated with a table - Items map[string]*MetadataItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The locations where metadata items are associated - Locations *MetadataLocations `protobuf:"bytes,2,opt,name=locations,proto3" json:"locations,omitempty"` -} - -func (x *MetadataCollection) Reset() { - *x = MetadataCollection{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_MetadataCollection_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetadataCollection) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetadataCollection) ProtoMessage() {} - -func (x *MetadataCollection) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_MetadataCollection_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetadataCollection.ProtoReflect.Descriptor instead. -func (*MetadataCollection) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescGZIP(), []int{0} -} - -func (x *MetadataCollection) GetItems() map[string]*MetadataItem { - if x != nil { - return x.Items - } - return nil -} - -func (x *MetadataCollection) GetLocations() *MetadataLocations { - if x != nil { - return x.Locations - } - return nil -} - -var File_fds_protobuf_stach_v2_table_MetadataCollection_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDesc = []byte{ - 0x0a, 0x34, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x2e, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, - 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x02, 0x0a, - 0x12, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x50, 0x0a, 0x09, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x67, 0x0a, 0x0a, 0x49, - 0x74, 0x65, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x42, 0xa4, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x17, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, - 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, - 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, - 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescData = file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_MetadataCollection_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_fds_protobuf_stach_v2_table_MetadataCollection_proto_goTypes = []interface{}{ - (*MetadataCollection)(nil), // 0: factset.protobuf.stach.v2.table.MetadataCollection - nil, // 1: factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry - (*MetadataLocations)(nil), // 2: factset.protobuf.stach.v2.table.MetadataLocations - (*MetadataItem)(nil), // 3: factset.protobuf.stach.v2.table.MetadataItem -} -var file_fds_protobuf_stach_v2_table_MetadataCollection_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.MetadataCollection.items:type_name -> factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry - 2, // 1: factset.protobuf.stach.v2.table.MetadataCollection.locations:type_name -> factset.protobuf.stach.v2.table.MetadataLocations - 3, // 2: factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataItem - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_MetadataCollection_proto_init() } -func file_fds_protobuf_stach_v2_table_MetadataCollection_proto_init() { - if File_fds_protobuf_stach_v2_table_MetadataCollection_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_MetadataItem_proto_init() - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetadataCollection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_MetadataCollection_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_MetadataCollection_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_MetadataCollection_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_MetadataCollection_proto = out.File - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/MetadataItem.pb.go b/go/fds/protobuf/stach/v2/table/MetadataItem.pb.go deleted file mode 100644 index 807d4a4..0000000 --- a/go/fds/protobuf/stach/v2/table/MetadataItem.pb.go +++ /dev/null @@ -1,214 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/MetadataItem.proto - -package table - -import ( - _struct "github.com/golang/protobuf/ptypes/struct" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A metadata item -// -// Represents data to describe the table or parts of the table -type MetadataItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: - // *MetadataItem_Value - // *MetadataItem_Reference - Data isMetadataItem_Data `protobuf_oneof:"data"` -} - -func (x *MetadataItem) Reset() { - *x = MetadataItem{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_MetadataItem_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetadataItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetadataItem) ProtoMessage() {} - -func (x *MetadataItem) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_MetadataItem_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetadataItem.ProtoReflect.Descriptor instead. -func (*MetadataItem) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescGZIP(), []int{0} -} - -func (m *MetadataItem) GetData() isMetadataItem_Data { - if m != nil { - return m.Data - } - return nil -} - -func (x *MetadataItem) GetValue() *_struct.Value { - if x, ok := x.GetData().(*MetadataItem_Value); ok { - return x.Value - } - return nil -} - -func (x *MetadataItem) GetReference() *Reference { - if x, ok := x.GetData().(*MetadataItem_Reference); ok { - return x.Reference - } - return nil -} - -type isMetadataItem_Data interface { - isMetadataItem_Data() -} - -type MetadataItem_Value struct { - // The value - Value *_struct.Value `protobuf:"bytes,1,opt,name=value,proto3,oneof"` -} - -type MetadataItem_Reference struct { - // The table reference - Reference *Reference `protobuf:"bytes,2,opt,name=reference,proto3,oneof"` -} - -func (*MetadataItem_Value) isMetadataItem_Data() {} - -func (*MetadataItem_Reference) isMetadataItem_Data() {} - -var File_fds_protobuf_stach_v2_table_MetadataItem_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2b, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x52, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, - 0x0c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x2e, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4a, 0x0a, - 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x09, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x42, 0x9e, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x11, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, - 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescData = file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_MetadataItem_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_MetadataItem_proto_goTypes = []interface{}{ - (*MetadataItem)(nil), // 0: factset.protobuf.stach.v2.table.MetadataItem - (*_struct.Value)(nil), // 1: google.protobuf.Value - (*Reference)(nil), // 2: factset.protobuf.stach.v2.table.Reference -} -var file_fds_protobuf_stach_v2_table_MetadataItem_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.MetadataItem.value:type_name -> google.protobuf.Value - 2, // 1: factset.protobuf.stach.v2.table.MetadataItem.reference:type_name -> factset.protobuf.stach.v2.table.Reference - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_MetadataItem_proto_init() } -func file_fds_protobuf_stach_v2_table_MetadataItem_proto_init() { - if File_fds_protobuf_stach_v2_table_MetadataItem_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_Reference_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_MetadataItem_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetadataItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_fds_protobuf_stach_v2_table_MetadataItem_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*MetadataItem_Value)(nil), - (*MetadataItem_Reference)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_MetadataItem_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_MetadataItem_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_MetadataItem_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_MetadataItem_proto = out.File - file_fds_protobuf_stach_v2_table_MetadataItem_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_MetadataItem_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_MetadataItem_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/MetadataLocations.pb.go b/go/fds/protobuf/stach/v2/table/MetadataLocations.pb.go deleted file mode 100644 index a80c75a..0000000 --- a/go/fds/protobuf/stach/v2/table/MetadataLocations.pb.go +++ /dev/null @@ -1,385 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/MetadataLocations.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The metadata locations for a table -type MetadataLocations struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The array (metadata item id) of metadata items associated with the whole table - Table []string `protobuf:"bytes,1,rep,name=table,proto3" json:"table,omitempty"` - // The map (key: column id) of all metadata items associated with a column - Columns map[string]*ListOfMetadata `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The map (key: row id) of all metadata items associated with a row - Rows map[string]*ListOfMetadata `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The metadata items associated with specific cells - Cells *MetadataLocations_CellsColumnMap `protobuf:"bytes,4,opt,name=cells,proto3" json:"cells,omitempty"` -} - -func (x *MetadataLocations) Reset() { - *x = MetadataLocations{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetadataLocations) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetadataLocations) ProtoMessage() {} - -func (x *MetadataLocations) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetadataLocations.ProtoReflect.Descriptor instead. -func (*MetadataLocations) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescGZIP(), []int{0} -} - -func (x *MetadataLocations) GetTable() []string { - if x != nil { - return x.Table - } - return nil -} - -func (x *MetadataLocations) GetColumns() map[string]*ListOfMetadata { - if x != nil { - return x.Columns - } - return nil -} - -func (x *MetadataLocations) GetRows() map[string]*ListOfMetadata { - if x != nil { - return x.Rows - } - return nil -} - -func (x *MetadataLocations) GetCells() *MetadataLocations_CellsColumnMap { - if x != nil { - return x.Cells - } - return nil -} - -// A message wrapper for a map of columns to `CellsRowMap` -type MetadataLocations_CellsColumnMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The map (key: column id) of columns to `CellsRowMap` - Columns map[string]*MetadataLocations_CellsRowMap `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *MetadataLocations_CellsColumnMap) Reset() { - *x = MetadataLocations_CellsColumnMap{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetadataLocations_CellsColumnMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetadataLocations_CellsColumnMap) ProtoMessage() {} - -func (x *MetadataLocations_CellsColumnMap) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetadataLocations_CellsColumnMap.ProtoReflect.Descriptor instead. -func (*MetadataLocations_CellsColumnMap) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *MetadataLocations_CellsColumnMap) GetColumns() map[string]*MetadataLocations_CellsRowMap { - if x != nil { - return x.Columns - } - return nil -} - -// A message wrapper for a map of rows to a list of metadata -type MetadataLocations_CellsRowMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The map (key: row id) of rows to a list of metadata - Rows map[string]*ListOfMetadata `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *MetadataLocations_CellsRowMap) Reset() { - *x = MetadataLocations_CellsRowMap{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetadataLocations_CellsRowMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetadataLocations_CellsRowMap) ProtoMessage() {} - -func (x *MetadataLocations_CellsRowMap) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetadataLocations_CellsRowMap.ProtoReflect.Descriptor instead. -func (*MetadataLocations_CellsRowMap) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescGZIP(), []int{0, 1} -} - -func (x *MetadataLocations_CellsRowMap) GetRows() map[string]*ListOfMetadata { - if x != nil { - return x.Rows - } - return nil -} - -var File_fds_protobuf_stach_v2_table_MetadataLocations_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDesc = []byte{ - 0x0a, 0x33, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x30, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x07, 0x0a, 0x11, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x12, 0x59, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, - 0x50, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, - 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x72, 0x6f, 0x77, - 0x73, 0x12, 0x57, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x41, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x4d, 0x61, 0x70, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x1a, 0xf6, 0x01, 0x0a, 0x0e, 0x43, - 0x65, 0x6c, 0x6c, 0x73, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x61, 0x70, 0x12, 0x68, 0x0a, - 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4e, - 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x61, - 0x70, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x1a, 0x7a, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x54, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x65, 0x6c, - 0x6c, 0x73, 0x52, 0x6f, 0x77, 0x4d, 0x61, 0x70, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0xd5, 0x01, 0x0a, 0x0b, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x52, 0x6f, 0x77, - 0x4d, 0x61, 0x70, 0x12, 0x5c, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x48, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x52, 0x6f, 0x77, 0x4d, 0x61, - 0x70, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x72, 0x6f, 0x77, - 0x73, 0x1a, 0x68, 0x0a, 0x09, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2f, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6b, 0x0a, 0x0c, 0x43, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x4f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x68, 0x0a, 0x09, 0x52, 0x6f, 0x77, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x66, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x42, 0xa3, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x16, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, - 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, - 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescData = file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_fds_protobuf_stach_v2_table_MetadataLocations_proto_goTypes = []interface{}{ - (*MetadataLocations)(nil), // 0: factset.protobuf.stach.v2.table.MetadataLocations - (*MetadataLocations_CellsColumnMap)(nil), // 1: factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - (*MetadataLocations_CellsRowMap)(nil), // 2: factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - nil, // 3: factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry - nil, // 4: factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry - nil, // 5: factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry - nil, // 6: factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry - (*ListOfMetadata)(nil), // 7: factset.protobuf.stach.v2.table.ListOfMetadata -} -var file_fds_protobuf_stach_v2_table_MetadataLocations_proto_depIdxs = []int32{ - 3, // 0: factset.protobuf.stach.v2.table.MetadataLocations.columns:type_name -> factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry - 4, // 1: factset.protobuf.stach.v2.table.MetadataLocations.rows:type_name -> factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry - 1, // 2: factset.protobuf.stach.v2.table.MetadataLocations.cells:type_name -> factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - 5, // 3: factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.columns:type_name -> factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry - 6, // 4: factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.rows:type_name -> factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry - 7, // 5: factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry.value:type_name -> factset.protobuf.stach.v2.table.ListOfMetadata - 7, // 6: factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry.value:type_name -> factset.protobuf.stach.v2.table.ListOfMetadata - 2, // 7: factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry.value:type_name -> factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - 7, // 8: factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry.value:type_name -> factset.protobuf.stach.v2.table.ListOfMetadata - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_MetadataLocations_proto_init() } -func file_fds_protobuf_stach_v2_table_MetadataLocations_proto_init() { - if File_fds_protobuf_stach_v2_table_MetadataLocations_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_ListOfMetadata_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetadataLocations); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetadataLocations_CellsColumnMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetadataLocations_CellsRowMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_MetadataLocations_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_MetadataLocations_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_MetadataLocations_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_MetadataLocations_proto = out.File - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_MetadataLocations_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/Reference.pb.go b/go/fds/protobuf/stach/v2/table/Reference.pb.go deleted file mode 100644 index 13a7e09..0000000 --- a/go/fds/protobuf/stach/v2/table/Reference.pb.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/Reference.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A reference to a table or a piece of a table -type Reference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The type of the reference - ReferenceType ReferenceType `protobuf:"varint,1,opt,name=reference_type,json=referenceType,proto3,enum=factset.protobuf.stach.v2.table.ReferenceType" json:"reference_type,omitempty"` - // The table id - TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` - // The column id - ColumnId string `protobuf:"bytes,3,opt,name=column_id,json=columnId,proto3" json:"column_id,omitempty"` - // The row id - RowId string `protobuf:"bytes,4,opt,name=row_id,json=rowId,proto3" json:"row_id,omitempty"` -} - -func (x *Reference) Reset() { - *x = Reference{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_Reference_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Reference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Reference) ProtoMessage() {} - -func (x *Reference) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_Reference_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Reference.ProtoReflect.Descriptor instead. -func (*Reference) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_Reference_proto_rawDescGZIP(), []int{0} -} - -func (x *Reference) GetReferenceType() ReferenceType { - if x != nil { - return x.ReferenceType - } - return ReferenceType_UNKNOWN_REFERENCE_TYPE -} - -func (x *Reference) GetTableId() string { - if x != nil { - return x.TableId - } - return "" -} - -func (x *Reference) GetColumnId() string { - if x != nil { - return x.ColumnId - } - return "" -} - -func (x *Reference) GetRowId() string { - if x != nil { - return x.RowId - } - return "" -} - -var File_fds_protobuf_stach_v2_table_Reference_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_Reference_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x2f, - 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, - 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xb1, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x55, 0x0a, - 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, - 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, - 0x77, 0x49, 0x64, 0x42, 0x9b, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, - 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, - 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0e, 0x52, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, - 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, - 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_Reference_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_Reference_proto_rawDescData = file_fds_protobuf_stach_v2_table_Reference_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_Reference_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_Reference_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_Reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_Reference_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_Reference_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_Reference_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_Reference_proto_goTypes = []interface{}{ - (*Reference)(nil), // 0: factset.protobuf.stach.v2.table.Reference - (ReferenceType)(0), // 1: factset.protobuf.stach.v2.table.ReferenceType -} -var file_fds_protobuf_stach_v2_table_Reference_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.Reference.reference_type:type_name -> factset.protobuf.stach.v2.table.ReferenceType - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_Reference_proto_init() } -func file_fds_protobuf_stach_v2_table_Reference_proto_init() { - if File_fds_protobuf_stach_v2_table_Reference_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_ReferenceType_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_Reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Reference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_Reference_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_Reference_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_Reference_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_Reference_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_Reference_proto = out.File - file_fds_protobuf_stach_v2_table_Reference_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_Reference_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_Reference_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/ReferenceType.pb.go b/go/fds/protobuf/stach/v2/table/ReferenceType.pb.go deleted file mode 100644 index 88c14c4..0000000 --- a/go/fds/protobuf/stach/v2/table/ReferenceType.pb.go +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/ReferenceType.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The type of table reference -type ReferenceType int32 - -const ( - ReferenceType_UNKNOWN_REFERENCE_TYPE ReferenceType = 0 // This value should never be used, but exists to ensure that a value is specified - ReferenceType_TABLE ReferenceType = 1 // The table reference - ReferenceType_COLUMN ReferenceType = 2 // The column reference - ReferenceType_ROW ReferenceType = 3 // The row reference - ReferenceType_CELL ReferenceType = 4 // The cell reference -) - -// Enum value maps for ReferenceType. -var ( - ReferenceType_name = map[int32]string{ - 0: "UNKNOWN_REFERENCE_TYPE", - 1: "TABLE", - 2: "COLUMN", - 3: "ROW", - 4: "CELL", - } - ReferenceType_value = map[string]int32{ - "UNKNOWN_REFERENCE_TYPE": 0, - "TABLE": 1, - "COLUMN": 2, - "ROW": 3, - "CELL": 4, - } -) - -func (x ReferenceType) Enum() *ReferenceType { - p := new(ReferenceType) - *p = x - return p -} - -func (x ReferenceType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ReferenceType) Descriptor() protoreflect.EnumDescriptor { - return file_fds_protobuf_stach_v2_table_ReferenceType_proto_enumTypes[0].Descriptor() -} - -func (ReferenceType) Type() protoreflect.EnumType { - return &file_fds_protobuf_stach_v2_table_ReferenceType_proto_enumTypes[0] -} - -func (x ReferenceType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ReferenceType.Descriptor instead. -func (ReferenceType) EnumDescriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescGZIP(), []int{0} -} - -var File_fds_protobuf_stach_v2_table_ReferenceType_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDesc = []byte{ - 0x0a, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2a, 0x55, 0x0a, 0x0d, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x52, - 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, - 0x09, 0x0a, 0x05, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, - 0x4c, 0x55, 0x4d, 0x4e, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x4f, 0x57, 0x10, 0x03, 0x12, - 0x08, 0x0a, 0x04, 0x43, 0x45, 0x4c, 0x4c, 0x10, 0x04, 0x42, 0x9f, 0x01, 0x0a, 0x23, 0x63, 0x6f, - 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x42, 0x12, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, - 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, - 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, - 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescData = file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_ReferenceType_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_fds_protobuf_stach_v2_table_ReferenceType_proto_goTypes = []interface{}{ - (ReferenceType)(0), // 0: factset.protobuf.stach.v2.table.ReferenceType -} -var file_fds_protobuf_stach_v2_table_ReferenceType_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_ReferenceType_proto_init() } -func file_fds_protobuf_stach_v2_table_ReferenceType_proto_init() { - if File_fds_protobuf_stach_v2_table_ReferenceType_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDesc, - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_ReferenceType_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_ReferenceType_proto_depIdxs, - EnumInfos: file_fds_protobuf_stach_v2_table_ReferenceType_proto_enumTypes, - }.Build() - File_fds_protobuf_stach_v2_table_ReferenceType_proto = out.File - file_fds_protobuf_stach_v2_table_ReferenceType_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_ReferenceType_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_ReferenceType_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/RowDefinition.pb.go b/go/fds/protobuf/stach/v2/table/RowDefinition.pb.go deleted file mode 100644 index c0ff92a..0000000 --- a/go/fds/protobuf/stach/v2/table/RowDefinition.pb.go +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/RowDefinition.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A definition of a row -// -// Overrides the column definition -type RowDefinition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The id; used for referring to a row internal to a package - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The data format; overrides the `ColumnDefinition.format` - Format *DataFormat `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` -} - -func (x *RowDefinition) Reset() { - *x = RowDefinition{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_RowDefinition_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowDefinition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowDefinition) ProtoMessage() {} - -func (x *RowDefinition) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_RowDefinition_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowDefinition.ProtoReflect.Descriptor instead. -func (*RowDefinition) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescGZIP(), []int{0} -} - -func (x *RowDefinition) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *RowDefinition) GetFormat() *DataFormat { - if x != nil { - return x.Format - } - return nil -} - -var File_fds_protobuf_stach_v2_table_RowDefinition_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDesc = []byte{ - 0x0a, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x52, 0x6f, - 0x77, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x1a, 0x2c, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, - 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x64, 0x0a, 0x0d, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x43, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0x9f, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x12, - 0x52, 0x6f, 0x77, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, - 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, - 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescData = file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_RowDefinition_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_RowDefinition_proto_goTypes = []interface{}{ - (*RowDefinition)(nil), // 0: factset.protobuf.stach.v2.table.RowDefinition - (*DataFormat)(nil), // 1: factset.protobuf.stach.v2.table.DataFormat -} -var file_fds_protobuf_stach_v2_table_RowDefinition_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.RowDefinition.format:type_name -> factset.protobuf.stach.v2.table.DataFormat - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_RowDefinition_proto_init() } -func file_fds_protobuf_stach_v2_table_RowDefinition_proto_init() { - if File_fds_protobuf_stach_v2_table_RowDefinition_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_DataFormat_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_RowDefinition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_RowDefinition_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_RowDefinition_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_RowDefinition_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_RowDefinition_proto = out.File - file_fds_protobuf_stach_v2_table_RowDefinition_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_RowDefinition_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_RowDefinition_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/Table.pb.go b/go/fds/protobuf/stach/v2/table/Table.pb.go deleted file mode 100644 index 7fa1ee4..0000000 --- a/go/fds/protobuf/stach/v2/table/Table.pb.go +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/Table.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A column organized table -type Table struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The definition - Definition *TableDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"` - // The data - Data *TableData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *Table) Reset() { - *x = Table{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_Table_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Table) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Table) ProtoMessage() {} - -func (x *Table) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_Table_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Table.ProtoReflect.Descriptor instead. -func (*Table) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_Table_proto_rawDescGZIP(), []int{0} -} - -func (x *Table) GetDefinition() *TableDefinition { - if x != nil { - return x.Definition - } - return nil -} - -func (x *Table) GetData() *TableData { - if x != nil { - return x.Data - } - return nil -} - -var File_fds_protobuf_stach_v2_table_Table_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_Table_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x2b, 0x66, 0x64, 0x73, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, - 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x01, 0x0a, 0x05, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x97, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0a, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, - 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, - 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_Table_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_Table_proto_rawDescData = file_fds_protobuf_stach_v2_table_Table_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_Table_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_Table_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_Table_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_Table_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_Table_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_Table_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_Table_proto_goTypes = []interface{}{ - (*Table)(nil), // 0: factset.protobuf.stach.v2.table.Table - (*TableDefinition)(nil), // 1: factset.protobuf.stach.v2.table.TableDefinition - (*TableData)(nil), // 2: factset.protobuf.stach.v2.table.TableData -} -var file_fds_protobuf_stach_v2_table_Table_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.Table.definition:type_name -> factset.protobuf.stach.v2.table.TableDefinition - 2, // 1: factset.protobuf.stach.v2.table.Table.data:type_name -> factset.protobuf.stach.v2.table.TableData - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_Table_proto_init() } -func file_fds_protobuf_stach_v2_table_Table_proto_init() { - if File_fds_protobuf_stach_v2_table_Table_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_TableData_proto_init() - file_fds_protobuf_stach_v2_table_TableDefinition_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_Table_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Table); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_Table_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_Table_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_Table_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_Table_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_Table_proto = out.File - file_fds_protobuf_stach_v2_table_Table_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_Table_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_Table_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/TableData.pb.go b/go/fds/protobuf/stach/v2/table/TableData.pb.go deleted file mode 100644 index e844d43..0000000 --- a/go/fds/protobuf/stach/v2/table/TableData.pb.go +++ /dev/null @@ -1,214 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/TableData.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// An object of table data -type TableData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The array of rows definitions - Rows []*RowDefinition `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"` - // The map (key: column id) of column data - Columns map[string]*ColumnData `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The metadata - Metadata *MetadataCollection `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *TableData) Reset() { - *x = TableData{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_TableData_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TableData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TableData) ProtoMessage() {} - -func (x *TableData) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_TableData_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TableData.ProtoReflect.Descriptor instead. -func (*TableData) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_TableData_proto_rawDescGZIP(), []int{0} -} - -func (x *TableData) GetRows() []*RowDefinition { - if x != nil { - return x.Rows - } - return nil -} - -func (x *TableData) GetColumns() map[string]*ColumnData { - if x != nil { - return x.Columns - } - return nil -} - -func (x *TableData) GetMetadata() *MetadataCollection { - if x != nil { - return x.Metadata - } - return nil -} - -var File_fds_protobuf_stach_v2_table_TableData_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_TableData_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x2c, - 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, - 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x66, 0x64, - 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, - 0x52, 0x6f, 0x77, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x42, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2e, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x2e, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x51, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x67, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, - 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x42, 0x9b, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, - 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, - 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_TableData_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_TableData_proto_rawDescData = file_fds_protobuf_stach_v2_table_TableData_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_TableData_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_TableData_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_TableData_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_TableData_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_TableData_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_TableData_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_fds_protobuf_stach_v2_table_TableData_proto_goTypes = []interface{}{ - (*TableData)(nil), // 0: factset.protobuf.stach.v2.table.TableData - nil, // 1: factset.protobuf.stach.v2.table.TableData.ColumnsEntry - (*RowDefinition)(nil), // 2: factset.protobuf.stach.v2.table.RowDefinition - (*MetadataCollection)(nil), // 3: factset.protobuf.stach.v2.table.MetadataCollection - (*ColumnData)(nil), // 4: factset.protobuf.stach.v2.table.ColumnData -} -var file_fds_protobuf_stach_v2_table_TableData_proto_depIdxs = []int32{ - 2, // 0: factset.protobuf.stach.v2.table.TableData.rows:type_name -> factset.protobuf.stach.v2.table.RowDefinition - 1, // 1: factset.protobuf.stach.v2.table.TableData.columns:type_name -> factset.protobuf.stach.v2.table.TableData.ColumnsEntry - 3, // 2: factset.protobuf.stach.v2.table.TableData.metadata:type_name -> factset.protobuf.stach.v2.table.MetadataCollection - 4, // 3: factset.protobuf.stach.v2.table.TableData.ColumnsEntry.value:type_name -> factset.protobuf.stach.v2.table.ColumnData - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_TableData_proto_init() } -func file_fds_protobuf_stach_v2_table_TableData_proto_init() { - if File_fds_protobuf_stach_v2_table_TableData_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_ColumnData_proto_init() - file_fds_protobuf_stach_v2_table_MetadataCollection_proto_init() - file_fds_protobuf_stach_v2_table_RowDefinition_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_TableData_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_TableData_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_TableData_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_TableData_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_TableData_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_TableData_proto = out.File - file_fds_protobuf_stach_v2_table_TableData_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_TableData_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_TableData_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/TableDefinition.pb.go b/go/fds/protobuf/stach/v2/table/TableDefinition.pb.go deleted file mode 100644 index aa9216e..0000000 --- a/go/fds/protobuf/stach/v2/table/TableDefinition.pb.go +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/TableDefinition.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A table definition -type TableDefinition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The id of the headers table - HeaderTableId string `protobuf:"bytes,1,opt,name=header_table_id,json=headerTableId,proto3" json:"header_table_id,omitempty"` - // The array of column definitions - Columns []*ColumnDefinition `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` -} - -func (x *TableDefinition) Reset() { - *x = TableDefinition{} - if protoimpl.UnsafeEnabled { - mi := &file_fds_protobuf_stach_v2_table_TableDefinition_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TableDefinition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TableDefinition) ProtoMessage() {} - -func (x *TableDefinition) ProtoReflect() protoreflect.Message { - mi := &file_fds_protobuf_stach_v2_table_TableDefinition_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TableDefinition.ProtoReflect.Descriptor instead. -func (*TableDefinition) Descriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescGZIP(), []int{0} -} - -func (x *TableDefinition) GetHeaderTableId() string { - if x != nil { - return x.HeaderTableId - } - return "" -} - -func (x *TableDefinition) GetColumns() []*ColumnDefinition { - if x != nil { - return x.Columns - } - return nil -} - -var File_fds_protobuf_stach_v2_table_TableDefinition_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x32, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x2f, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x0f, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0f, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x73, 0x42, 0xa1, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x14, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, - 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, - 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, - 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescData = file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_TableDefinition_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fds_protobuf_stach_v2_table_TableDefinition_proto_goTypes = []interface{}{ - (*TableDefinition)(nil), // 0: factset.protobuf.stach.v2.table.TableDefinition - (*ColumnDefinition)(nil), // 1: factset.protobuf.stach.v2.table.ColumnDefinition -} -var file_fds_protobuf_stach_v2_table_TableDefinition_proto_depIdxs = []int32{ - 1, // 0: factset.protobuf.stach.v2.table.TableDefinition.columns:type_name -> factset.protobuf.stach.v2.table.ColumnDefinition - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_TableDefinition_proto_init() } -func file_fds_protobuf_stach_v2_table_TableDefinition_proto_init() { - if File_fds_protobuf_stach_v2_table_TableDefinition_proto != nil { - return - } - file_fds_protobuf_stach_v2_table_ColumnDefinition_proto_init() - if !protoimpl.UnsafeEnabled { - file_fds_protobuf_stach_v2_table_TableDefinition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_TableDefinition_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_TableDefinition_proto_depIdxs, - MessageInfos: file_fds_protobuf_stach_v2_table_TableDefinition_proto_msgTypes, - }.Build() - File_fds_protobuf_stach_v2_table_TableDefinition_proto = out.File - file_fds_protobuf_stach_v2_table_TableDefinition_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_TableDefinition_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_TableDefinition_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v2/table/VerticalAlignment.pb.go b/go/fds/protobuf/stach/v2/table/VerticalAlignment.pb.go deleted file mode 100644 index 318ede3..0000000 --- a/go/fds/protobuf/stach/v2/table/VerticalAlignment.pb.go +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.12.3 -// source: fds/protobuf/stach/v2/table/VerticalAlignment.proto - -package table - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A vertical alignment -type VerticalAlignment int32 - -const ( - VerticalAlignment_UNKNOWN_VALIGN VerticalAlignment = 0 // This value should never be used, but exists to ensure that a value is specified - VerticalAlignment_TOP VerticalAlignment = 1 // Value is vertically aligned to the top of the cell - VerticalAlignment_MIDDLE VerticalAlignment = 2 // Value is vertically aligned to the middle of the cell - VerticalAlignment_BOTTOM VerticalAlignment = 3 // Value is vertically aligned to the bottom of the cell -) - -// Enum value maps for VerticalAlignment. -var ( - VerticalAlignment_name = map[int32]string{ - 0: "UNKNOWN_VALIGN", - 1: "TOP", - 2: "MIDDLE", - 3: "BOTTOM", - } - VerticalAlignment_value = map[string]int32{ - "UNKNOWN_VALIGN": 0, - "TOP": 1, - "MIDDLE": 2, - "BOTTOM": 3, - } -) - -func (x VerticalAlignment) Enum() *VerticalAlignment { - p := new(VerticalAlignment) - *p = x - return p -} - -func (x VerticalAlignment) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (VerticalAlignment) Descriptor() protoreflect.EnumDescriptor { - return file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_enumTypes[0].Descriptor() -} - -func (VerticalAlignment) Type() protoreflect.EnumType { - return &file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_enumTypes[0] -} - -func (x VerticalAlignment) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use VerticalAlignment.Descriptor instead. -func (VerticalAlignment) EnumDescriptor() ([]byte, []int) { - return file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescGZIP(), []int{0} -} - -var File_fds_protobuf_stach_v2_table_VerticalAlignment_proto protoreflect.FileDescriptor - -var file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDesc = []byte{ - 0x0a, 0x33, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x56, 0x65, - 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2a, 0x48, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x0e, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x47, 0x4e, 0x10, 0x00, 0x12, - 0x07, 0x0a, 0x03, 0x54, 0x4f, 0x50, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x49, 0x44, 0x44, - 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x4f, 0x54, 0x54, 0x4f, 0x4d, 0x10, 0x03, - 0x42, 0xa3, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x16, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0xaa, 0x02, 0x1f, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x32, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescOnce sync.Once - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescData = file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDesc -) - -func file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescGZIP() []byte { - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescOnce.Do(func() { - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescData) - }) - return file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDescData -} - -var file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_goTypes = []interface{}{ - (VerticalAlignment)(0), // 0: factset.protobuf.stach.v2.table.VerticalAlignment -} -var file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_init() } -func file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_init() { - if File_fds_protobuf_stach_v2_table_VerticalAlignment_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDesc, - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_goTypes, - DependencyIndexes: file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_depIdxs, - EnumInfos: file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_enumTypes, - }.Build() - File_fds_protobuf_stach_v2_table_VerticalAlignment_proto = out.File - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_rawDesc = nil - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_goTypes = nil - file_fds_protobuf_stach_v2_table_VerticalAlignment_proto_depIdxs = nil -} diff --git a/go/fds/protobuf/stach/v3/Column.pb.go b/go/fds/protobuf/stach/v3/Column.pb.go new file mode 100644 index 0000000..14eede6 --- /dev/null +++ b/go/fds/protobuf/stach/v3/Column.pb.go @@ -0,0 +1,190 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0-devel +// protoc v3.12.3 +// source: fds/protobuf/stach/v3/Column.proto + +package v3 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// +//A set of metadata for a table column. +type Column struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The type that defines a higher level contextual type. + //E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message). + //Required. + ContextualType string `protobuf:"bytes,1,opt,name=contextual_type,json=contextualType,proto3" json:"contextual_type,omitempty"` + // + //The custom metadata. + //Optional. + CustomMetadata map[string]*MetadataItem `protobuf:"bytes,100,rep,name=custom_metadata,json=customMetadata,proto3" json:"custom_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Column) Reset() { + *x = Column{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Column_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Column) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Column) ProtoMessage() {} + +func (x *Column) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Column_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Column.ProtoReflect.Descriptor instead. +func (*Column) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Column_proto_rawDescGZIP(), []int{0} +} + +func (x *Column) GetContextualType() string { + if x != nil { + return x.ContextualType + } + return "" +} + +func (x *Column) GetCustomMetadata() map[string]*MetadataItem { + if x != nil { + return x.CustomMetadata + } + return nil +} + +var File_fds_protobuf_stach_v3_Column_proto protoreflect.FileDescriptor + +var file_fds_protobuf_stach_v3_Column_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x1a, + 0x28, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, + 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, + 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfd, 0x01, 0x0a, 0x06, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x75, + 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x75, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, + 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x6a, 0x0a, + 0x13, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, + 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x86, 0x01, 0x0a, 0x1d, 0x63, 0x6f, + 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, + 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, + 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, + 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0xaa, 0x02, 0x19, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_fds_protobuf_stach_v3_Column_proto_rawDescOnce sync.Once + file_fds_protobuf_stach_v3_Column_proto_rawDescData = file_fds_protobuf_stach_v3_Column_proto_rawDesc +) + +func file_fds_protobuf_stach_v3_Column_proto_rawDescGZIP() []byte { + file_fds_protobuf_stach_v3_Column_proto_rawDescOnce.Do(func() { + file_fds_protobuf_stach_v3_Column_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v3_Column_proto_rawDescData) + }) + return file_fds_protobuf_stach_v3_Column_proto_rawDescData +} + +var file_fds_protobuf_stach_v3_Column_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_fds_protobuf_stach_v3_Column_proto_goTypes = []interface{}{ + (*Column)(nil), // 0: factset.protobuf.stach.v3.Column + nil, // 1: factset.protobuf.stach.v3.Column.CustomMetadataEntry + (*MetadataItem)(nil), // 2: factset.protobuf.stach.v3.MetadataItem +} +var file_fds_protobuf_stach_v3_Column_proto_depIdxs = []int32{ + 1, // 0: factset.protobuf.stach.v3.Column.custom_metadata:type_name -> factset.protobuf.stach.v3.Column.CustomMetadataEntry + 2, // 1: factset.protobuf.stach.v3.Column.CustomMetadataEntry.value:type_name -> factset.protobuf.stach.v3.MetadataItem + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_fds_protobuf_stach_v3_Column_proto_init() } +func file_fds_protobuf_stach_v3_Column_proto_init() { + if File_fds_protobuf_stach_v3_Column_proto != nil { + return + } + file_fds_protobuf_stach_v3_MetadataItem_proto_init() + if !protoimpl.UnsafeEnabled { + file_fds_protobuf_stach_v3_Column_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Column); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fds_protobuf_stach_v3_Column_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fds_protobuf_stach_v3_Column_proto_goTypes, + DependencyIndexes: file_fds_protobuf_stach_v3_Column_proto_depIdxs, + MessageInfos: file_fds_protobuf_stach_v3_Column_proto_msgTypes, + }.Build() + File_fds_protobuf_stach_v3_Column_proto = out.File + file_fds_protobuf_stach_v3_Column_proto_rawDesc = nil + file_fds_protobuf_stach_v3_Column_proto_goTypes = nil + file_fds_protobuf_stach_v3_Column_proto_depIdxs = nil +} diff --git a/go/fds/protobuf/stach/v3/MetadataItem.pb.go b/go/fds/protobuf/stach/v3/MetadataItem.pb.go new file mode 100644 index 0000000..09dadfc --- /dev/null +++ b/go/fds/protobuf/stach/v3/MetadataItem.pb.go @@ -0,0 +1,179 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0-devel +// protoc v3.12.3 +// source: fds/protobuf/stach/v3/MetadataItem.proto + +package v3 + +import ( + _struct "github.com/golang/protobuf/ptypes/struct" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// +//A custom metadata item. +type MetadataItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The higher level contextual type. + //E.g. 'email', or 'id32'. + //Required. + ContextualType string `protobuf:"bytes,1,opt,name=contextual_type,json=contextualType,proto3" json:"contextual_type,omitempty"` + // + //The value. + //Required. + Value *_struct.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *MetadataItem) Reset() { + *x = MetadataItem{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_MetadataItem_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataItem) ProtoMessage() {} + +func (x *MetadataItem) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_MetadataItem_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MetadataItem.ProtoReflect.Descriptor instead. +func (*MetadataItem) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescGZIP(), []int{0} +} + +func (x *MetadataItem) GetContextualType() string { + if x != nil { + return x.ContextualType + } + return "" +} + +func (x *MetadataItem) GetValue() *_struct.Value { + if x != nil { + return x.Value + } + return nil +} + +var File_fds_protobuf_stach_v3_MetadataItem_proto protoreflect.FileDescriptor + +var file_fds_protobuf_stach_v3_MetadataItem_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, + 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x68, 0x2e, 0x76, 0x33, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, + 0x74, 0x65, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x75, 0x61, + 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x75, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x8c, 0x01, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x42, 0x11, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, + 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, + 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, + 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0xaa, 0x02, 0x19, + 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescOnce sync.Once + file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescData = file_fds_protobuf_stach_v3_MetadataItem_proto_rawDesc +) + +func file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescGZIP() []byte { + file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescOnce.Do(func() { + file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescData) + }) + return file_fds_protobuf_stach_v3_MetadataItem_proto_rawDescData +} + +var file_fds_protobuf_stach_v3_MetadataItem_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_fds_protobuf_stach_v3_MetadataItem_proto_goTypes = []interface{}{ + (*MetadataItem)(nil), // 0: factset.protobuf.stach.v3.MetadataItem + (*_struct.Value)(nil), // 1: google.protobuf.Value +} +var file_fds_protobuf_stach_v3_MetadataItem_proto_depIdxs = []int32{ + 1, // 0: factset.protobuf.stach.v3.MetadataItem.value:type_name -> google.protobuf.Value + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_fds_protobuf_stach_v3_MetadataItem_proto_init() } +func file_fds_protobuf_stach_v3_MetadataItem_proto_init() { + if File_fds_protobuf_stach_v3_MetadataItem_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_fds_protobuf_stach_v3_MetadataItem_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fds_protobuf_stach_v3_MetadataItem_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fds_protobuf_stach_v3_MetadataItem_proto_goTypes, + DependencyIndexes: file_fds_protobuf_stach_v3_MetadataItem_proto_depIdxs, + MessageInfos: file_fds_protobuf_stach_v3_MetadataItem_proto_msgTypes, + }.Build() + File_fds_protobuf_stach_v3_MetadataItem_proto = out.File + file_fds_protobuf_stach_v3_MetadataItem_proto_rawDesc = nil + file_fds_protobuf_stach_v3_MetadataItem_proto_goTypes = nil + file_fds_protobuf_stach_v3_MetadataItem_proto_depIdxs = nil +} diff --git a/go/fds/protobuf/stach/v3/RowOrganizedTable.pb.go b/go/fds/protobuf/stach/v3/RowOrganizedTable.pb.go new file mode 100644 index 0000000..f9ad360 --- /dev/null +++ b/go/fds/protobuf/stach/v3/RowOrganizedTable.pb.go @@ -0,0 +1,580 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0-devel +// protoc v3.12.3 +// source: fds/protobuf/stach/v3/RowOrganizedTable.proto + +package v3 + +import ( + _struct "github.com/golang/protobuf/ptypes/struct" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// +//A row-organized table. +//Used for JSON-encoding a table. +type RowOrganizedTable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The version of the schema. + //Required. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // + //The name of the table. + //Optional. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // + //The columns that define this table. + //Required. + Columns []*RowOrganizedTable_Column `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` + // + //The primary table metadata. + //Required. + Table *Table `protobuf:"bytes,4,opt,name=table,proto3" json:"table,omitempty"` + // + //The multi-level headers table. + //Optional. + MultiLevelHeadersTable *RowOrganizedTable `protobuf:"bytes,5,opt,name=multi_level_headers_table,json=multiLevelHeadersTable,proto3" json:"multi_level_headers_table,omitempty"` + // + //The views metadata. + //Optional. + Views []*Views_View `protobuf:"bytes,6,rep,name=views,proto3" json:"views,omitempty"` + // + //The header rows. + //Optional. + HeaderRows []*RowOrganizedTable_HeaderRow `protobuf:"bytes,7,rep,name=header_rows,json=headerRows,proto3" json:"header_rows,omitempty"` + // + //The rows. + //Required. + Rows []*_struct.Struct `protobuf:"bytes,8,rep,name=rows,proto3" json:"rows,omitempty"` +} + +func (x *RowOrganizedTable) Reset() { + *x = RowOrganizedTable{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowOrganizedTable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowOrganizedTable) ProtoMessage() {} + +func (x *RowOrganizedTable) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowOrganizedTable.ProtoReflect.Descriptor instead. +func (*RowOrganizedTable) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescGZIP(), []int{0} +} + +func (x *RowOrganizedTable) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *RowOrganizedTable) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RowOrganizedTable) GetColumns() []*RowOrganizedTable_Column { + if x != nil { + return x.Columns + } + return nil +} + +func (x *RowOrganizedTable) GetTable() *Table { + if x != nil { + return x.Table + } + return nil +} + +func (x *RowOrganizedTable) GetMultiLevelHeadersTable() *RowOrganizedTable { + if x != nil { + return x.MultiLevelHeadersTable + } + return nil +} + +func (x *RowOrganizedTable) GetViews() []*Views_View { + if x != nil { + return x.Views + } + return nil +} + +func (x *RowOrganizedTable) GetHeaderRows() []*RowOrganizedTable_HeaderRow { + if x != nil { + return x.HeaderRows + } + return nil +} + +func (x *RowOrganizedTable) GetRows() []*_struct.Struct { + if x != nil { + return x.Rows + } + return nil +} + +// +//A row-organized column. +type RowOrganizedTable_Column struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The name of the column. + //Required. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // + //Whether the column can contains NULLs or not. + //Default is `false`. + //Required. + ForbidNulls bool `protobuf:"varint,2,opt,name=forbid_nulls,json=forbidNulls,proto3" json:"forbid_nulls,omitempty"` + // + //The contextual type. + //Required. + ContextualType string `protobuf:"bytes,3,opt,name=contextual_type,json=contextualType,proto3" json:"contextual_type,omitempty"` + // + //The custom metadata. + //Optional. + CustomMetadata map[string]*MetadataItem `protobuf:"bytes,100,rep,name=custom_metadata,json=customMetadata,proto3" json:"custom_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *RowOrganizedTable_Column) Reset() { + *x = RowOrganizedTable_Column{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowOrganizedTable_Column) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowOrganizedTable_Column) ProtoMessage() {} + +func (x *RowOrganizedTable_Column) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowOrganizedTable_Column.ProtoReflect.Descriptor instead. +func (*RowOrganizedTable_Column) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *RowOrganizedTable_Column) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RowOrganizedTable_Column) GetForbidNulls() bool { + if x != nil { + return x.ForbidNulls + } + return false +} + +func (x *RowOrganizedTable_Column) GetContextualType() string { + if x != nil { + return x.ContextualType + } + return "" +} + +func (x *RowOrganizedTable_Column) GetCustomMetadata() map[string]*MetadataItem { + if x != nil { + return x.CustomMetadata + } + return nil +} + +// +//A row-organized header row. +type RowOrganizedTable_HeaderRow struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The header row cells. + //Required. + Cells []*RowOrganizedTable_HeaderCell `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"` +} + +func (x *RowOrganizedTable_HeaderRow) Reset() { + *x = RowOrganizedTable_HeaderRow{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowOrganizedTable_HeaderRow) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowOrganizedTable_HeaderRow) ProtoMessage() {} + +func (x *RowOrganizedTable_HeaderRow) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowOrganizedTable_HeaderRow.ProtoReflect.Descriptor instead. +func (*RowOrganizedTable_HeaderRow) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *RowOrganizedTable_HeaderRow) GetCells() []*RowOrganizedTable_HeaderCell { + if x != nil { + return x.Cells + } + return nil +} + +// +//A row-organized header cell. +type RowOrganizedTable_HeaderCell struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The column span. + //Default is `0`. A zero is treated as a one. + //Optional. + Colspan uint32 `protobuf:"varint,1,opt,name=colspan,proto3" json:"colspan,omitempty"` + // + //The row span. + //Default is `0`. A zero is treated as a one. + //Optional. + Rowspan uint32 `protobuf:"varint,2,opt,name=rowspan,proto3" json:"rowspan,omitempty"` + // + //The cell's value. + //Optional. + Value *_struct.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *RowOrganizedTable_HeaderCell) Reset() { + *x = RowOrganizedTable_HeaderCell{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowOrganizedTable_HeaderCell) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowOrganizedTable_HeaderCell) ProtoMessage() {} + +func (x *RowOrganizedTable_HeaderCell) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowOrganizedTable_HeaderCell.ProtoReflect.Descriptor instead. +func (*RowOrganizedTable_HeaderCell) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescGZIP(), []int{0, 2} +} + +func (x *RowOrganizedTable_HeaderCell) GetColspan() uint32 { + if x != nil { + return x.Colspan + } + return 0 +} + +func (x *RowOrganizedTable_HeaderCell) GetRowspan() uint32 { + if x != nil { + return x.Rowspan + } + return 0 +} + +func (x *RowOrganizedTable_HeaderCell) GetValue() *_struct.Value { + if x != nil { + return x.Value + } + return nil +} + +var File_fds_protobuf_stach_v3_RowOrganizedTable_proto protoreflect.FileDescriptor + +var file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x19, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x1a, 0x28, 0x66, 0x64, 0x73, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, + 0x33, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x56, + 0x69, 0x65, 0x77, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x08, 0x0a, 0x11, 0x52, 0x6f, 0x77, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x07, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, + 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x05, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x63, + 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x12, 0x67, 0x0a, 0x19, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x76, 0x33, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x16, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x05, + 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, + 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x73, 0x2e, 0x56, 0x69, + 0x65, 0x77, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x57, 0x0a, 0x0b, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, + 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, + 0x77, 0x73, 0x12, 0x2b, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x1a, + 0xc6, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x62, 0x69, 0x64, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x62, 0x69, 0x64, 0x4e, 0x75, 0x6c, 0x6c, + 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x75, 0x61, 0x6c, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x78, 0x74, 0x75, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x64, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, + 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x6a, 0x0a, 0x13, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, + 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x52, 0x6f, 0x77, 0x12, 0x4d, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, + 0x2e, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x05, 0x63, + 0x65, 0x6c, 0x6c, 0x73, 0x1a, 0x6e, 0x0a, 0x0a, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x65, + 0x6c, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x72, 0x6f, 0x77, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, + 0x6f, 0x77, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x91, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, + 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x42, 0x16, 0x52, 0x6f, 0x77, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3c, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, + 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, + 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0xaa, 0x02, 0x19, 0x46, + 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescOnce sync.Once + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescData = file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDesc +) + +func file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescGZIP() []byte { + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescOnce.Do(func() { + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescData) + }) + return file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDescData +} + +var file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_fds_protobuf_stach_v3_RowOrganizedTable_proto_goTypes = []interface{}{ + (*RowOrganizedTable)(nil), // 0: factset.protobuf.stach.v3.RowOrganizedTable + (*RowOrganizedTable_Column)(nil), // 1: factset.protobuf.stach.v3.RowOrganizedTable.Column + (*RowOrganizedTable_HeaderRow)(nil), // 2: factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow + (*RowOrganizedTable_HeaderCell)(nil), // 3: factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell + nil, // 4: factset.protobuf.stach.v3.RowOrganizedTable.Column.CustomMetadataEntry + (*Table)(nil), // 5: factset.protobuf.stach.v3.Table + (*Views_View)(nil), // 6: factset.protobuf.stach.v3.Views.View + (*_struct.Struct)(nil), // 7: google.protobuf.Struct + (*_struct.Value)(nil), // 8: google.protobuf.Value + (*MetadataItem)(nil), // 9: factset.protobuf.stach.v3.MetadataItem +} +var file_fds_protobuf_stach_v3_RowOrganizedTable_proto_depIdxs = []int32{ + 1, // 0: factset.protobuf.stach.v3.RowOrganizedTable.columns:type_name -> factset.protobuf.stach.v3.RowOrganizedTable.Column + 5, // 1: factset.protobuf.stach.v3.RowOrganizedTable.table:type_name -> factset.protobuf.stach.v3.Table + 0, // 2: factset.protobuf.stach.v3.RowOrganizedTable.multi_level_headers_table:type_name -> factset.protobuf.stach.v3.RowOrganizedTable + 6, // 3: factset.protobuf.stach.v3.RowOrganizedTable.views:type_name -> factset.protobuf.stach.v3.Views.View + 2, // 4: factset.protobuf.stach.v3.RowOrganizedTable.header_rows:type_name -> factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow + 7, // 5: factset.protobuf.stach.v3.RowOrganizedTable.rows:type_name -> google.protobuf.Struct + 4, // 6: factset.protobuf.stach.v3.RowOrganizedTable.Column.custom_metadata:type_name -> factset.protobuf.stach.v3.RowOrganizedTable.Column.CustomMetadataEntry + 3, // 7: factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.cells:type_name -> factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell + 8, // 8: factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.value:type_name -> google.protobuf.Value + 9, // 9: factset.protobuf.stach.v3.RowOrganizedTable.Column.CustomMetadataEntry.value:type_name -> factset.protobuf.stach.v3.MetadataItem + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_fds_protobuf_stach_v3_RowOrganizedTable_proto_init() } +func file_fds_protobuf_stach_v3_RowOrganizedTable_proto_init() { + if File_fds_protobuf_stach_v3_RowOrganizedTable_proto != nil { + return + } + file_fds_protobuf_stach_v3_MetadataItem_proto_init() + file_fds_protobuf_stach_v3_Table_proto_init() + file_fds_protobuf_stach_v3_Views_proto_init() + if !protoimpl.UnsafeEnabled { + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowOrganizedTable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowOrganizedTable_Column); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowOrganizedTable_HeaderRow); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowOrganizedTable_HeaderCell); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fds_protobuf_stach_v3_RowOrganizedTable_proto_goTypes, + DependencyIndexes: file_fds_protobuf_stach_v3_RowOrganizedTable_proto_depIdxs, + MessageInfos: file_fds_protobuf_stach_v3_RowOrganizedTable_proto_msgTypes, + }.Build() + File_fds_protobuf_stach_v3_RowOrganizedTable_proto = out.File + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_rawDesc = nil + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_goTypes = nil + file_fds_protobuf_stach_v3_RowOrganizedTable_proto_depIdxs = nil +} diff --git a/go/fds/protobuf/stach/v3/Table.pb.go b/go/fds/protobuf/stach/v3/Table.pb.go new file mode 100644 index 0000000..6edb6cb --- /dev/null +++ b/go/fds/protobuf/stach/v3/Table.pb.go @@ -0,0 +1,505 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0-devel +// protoc v3.12.3 +// source: fds/protobuf/stach/v3/Table.proto + +package v3 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// +//A state of tabular data. +//If the tabular data has already been grouped, split, or a collapsed column produced, these properties are required to indicate that. +type Table struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The array of column names that define the primary key for each row. + //If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row. + //Required. + PrimaryKeys []string `protobuf:"bytes,1,rep,name=primary_keys,json=primaryKeys,proto3" json:"primary_keys,omitempty"` + // + //The total number of rows in the table. + //If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table. + //Default is `0`. + //Required if a payload contains partial data. + TotalNumRows int32 `protobuf:"varint,2,opt,name=total_num_rows,json=totalNumRows,proto3" json:"total_num_rows,omitempty"` + // + //The result of the grouping algorithm. + //Optional. + GroupResult *Table_GroupResult `protobuf:"bytes,3,opt,name=group_result,json=groupResult,proto3" json:"group_result,omitempty"` + // + //The result of the splitting algorithm. + //Optional. + SplitResult *Table_SplitResult `protobuf:"bytes,4,opt,name=split_result,json=splitResult,proto3" json:"split_result,omitempty"` + // + //The custom metadata. + //Optional. + CustomMetadata map[string]*MetadataItem `protobuf:"bytes,100,rep,name=custom_metadata,json=customMetadata,proto3" json:"custom_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Table) Reset() { + *x = Table{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Table) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Table) ProtoMessage() {} + +func (x *Table) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Table.ProtoReflect.Descriptor instead. +func (*Table) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Table_proto_rawDescGZIP(), []int{0} +} + +func (x *Table) GetPrimaryKeys() []string { + if x != nil { + return x.PrimaryKeys + } + return nil +} + +func (x *Table) GetTotalNumRows() int32 { + if x != nil { + return x.TotalNumRows + } + return 0 +} + +func (x *Table) GetGroupResult() *Table_GroupResult { + if x != nil { + return x.GroupResult + } + return nil +} + +func (x *Table) GetSplitResult() *Table_SplitResult { + if x != nil { + return x.SplitResult + } + return nil +} + +func (x *Table) GetCustomMetadata() map[string]*MetadataItem { + if x != nil { + return x.CustomMetadata + } + return nil +} + +// +//A result of executing the grouping algorithm. +type Table_GroupResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The names of the columns that were grouped by. + //Required, unless `Table.groupResult.collapsedColumnResult.name` is specified. + By []string `protobuf:"bytes,1,rep,name=by,proto3" json:"by,omitempty"` + // + //The realized collapsed column. + //Optional. + CollapsedColumnResult *Table_CollapsedColumnResult `protobuf:"bytes,2,opt,name=collapsed_column_result,json=collapsedColumnResult,proto3" json:"collapsed_column_result,omitempty"` + // + //The name of the `string` column that contains the row paths. + //Required. + RowPath string `protobuf:"bytes,3,opt,name=row_path,json=rowPath,proto3" json:"row_path,omitempty"` + // + //The name of the `boolean` column that indicates if a row is an aggregate row. + //Required. + AggregateRows string `protobuf:"bytes,4,opt,name=aggregate_rows,json=aggregateRows,proto3" json:"aggregate_rows,omitempty"` + // + //The name of the `int32` column that contains the group level override. + //Takes precedence over row path length. + //Optional. + Level string `protobuf:"bytes,5,opt,name=level,proto3" json:"level,omitempty"` +} + +func (x *Table_GroupResult) Reset() { + *x = Table_GroupResult{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Table_GroupResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Table_GroupResult) ProtoMessage() {} + +func (x *Table_GroupResult) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Table_GroupResult.ProtoReflect.Descriptor instead. +func (*Table_GroupResult) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Table_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *Table_GroupResult) GetBy() []string { + if x != nil { + return x.By + } + return nil +} + +func (x *Table_GroupResult) GetCollapsedColumnResult() *Table_CollapsedColumnResult { + if x != nil { + return x.CollapsedColumnResult + } + return nil +} + +func (x *Table_GroupResult) GetRowPath() string { + if x != nil { + return x.RowPath + } + return "" +} + +func (x *Table_GroupResult) GetAggregateRows() string { + if x != nil { + return x.AggregateRows + } + return "" +} + +func (x *Table_GroupResult) GetLevel() string { + if x != nil { + return x.Level + } + return "" +} + +// +//A result of the collapsed column algorithm. +type Table_CollapsedColumnResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The name of the collapsed column. + //The collapsed column is in the data so it is considered realized and therefore needs a name. + //Required. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *Table_CollapsedColumnResult) Reset() { + *x = Table_CollapsedColumnResult{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Table_CollapsedColumnResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Table_CollapsedColumnResult) ProtoMessage() {} + +func (x *Table_CollapsedColumnResult) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Table_CollapsedColumnResult.ProtoReflect.Descriptor instead. +func (*Table_CollapsedColumnResult) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Table_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *Table_CollapsedColumnResult) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// +//A result of executing the splitting algorithm. +type Table_SplitResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The name of the `string` column in the multi-level headers table that refers to column names in the primary table. + //Required. + MultiLevelHeadersTableReference string `protobuf:"bytes,1,opt,name=multi_level_headers_table_reference,json=multiLevelHeadersTableReference,proto3" json:"multi_level_headers_table_reference,omitempty"` +} + +func (x *Table_SplitResult) Reset() { + *x = Table_SplitResult{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Table_SplitResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Table_SplitResult) ProtoMessage() {} + +func (x *Table_SplitResult) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Table_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Table_SplitResult.ProtoReflect.Descriptor instead. +func (*Table_SplitResult) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Table_proto_rawDescGZIP(), []int{0, 2} +} + +func (x *Table_SplitResult) GetMultiLevelHeadersTableReference() string { + if x != nil { + return x.MultiLevelHeadersTableReference + } + return "" +} + +var File_fds_protobuf_stach_v3_Table_proto protoreflect.FileDescriptor + +var file_fds_protobuf_stach_v3_Table_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x1a, 0x28, + 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, + 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, + 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x06, 0x0a, 0x05, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, + 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, + 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x4f, 0x0a, 0x0c, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2c, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, + 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4f, 0x0a, 0x0c, + 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x52, 0x0b, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x5d, 0x0a, + 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0xe5, 0x01, 0x0a, + 0x0b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x62, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x62, 0x79, 0x12, 0x6e, 0x0a, 0x17, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, + 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, + 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x15, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x72, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x72, 0x6f, 0x77, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x2b, 0x0a, 0x15, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, + 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x1a, 0x5b, 0x0a, 0x0b, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x4c, 0x0a, 0x23, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1f, 0x6d, + 0x75, 0x6c, 0x74, 0x69, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x6a, + 0x0a, 0x13, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x85, 0x01, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x42, 0x0a, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, + 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, + 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, + 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0xaa, 0x02, 0x19, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_fds_protobuf_stach_v3_Table_proto_rawDescOnce sync.Once + file_fds_protobuf_stach_v3_Table_proto_rawDescData = file_fds_protobuf_stach_v3_Table_proto_rawDesc +) + +func file_fds_protobuf_stach_v3_Table_proto_rawDescGZIP() []byte { + file_fds_protobuf_stach_v3_Table_proto_rawDescOnce.Do(func() { + file_fds_protobuf_stach_v3_Table_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v3_Table_proto_rawDescData) + }) + return file_fds_protobuf_stach_v3_Table_proto_rawDescData +} + +var file_fds_protobuf_stach_v3_Table_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_fds_protobuf_stach_v3_Table_proto_goTypes = []interface{}{ + (*Table)(nil), // 0: factset.protobuf.stach.v3.Table + (*Table_GroupResult)(nil), // 1: factset.protobuf.stach.v3.Table.GroupResult + (*Table_CollapsedColumnResult)(nil), // 2: factset.protobuf.stach.v3.Table.CollapsedColumnResult + (*Table_SplitResult)(nil), // 3: factset.protobuf.stach.v3.Table.SplitResult + nil, // 4: factset.protobuf.stach.v3.Table.CustomMetadataEntry + (*MetadataItem)(nil), // 5: factset.protobuf.stach.v3.MetadataItem +} +var file_fds_protobuf_stach_v3_Table_proto_depIdxs = []int32{ + 1, // 0: factset.protobuf.stach.v3.Table.group_result:type_name -> factset.protobuf.stach.v3.Table.GroupResult + 3, // 1: factset.protobuf.stach.v3.Table.split_result:type_name -> factset.protobuf.stach.v3.Table.SplitResult + 4, // 2: factset.protobuf.stach.v3.Table.custom_metadata:type_name -> factset.protobuf.stach.v3.Table.CustomMetadataEntry + 2, // 3: factset.protobuf.stach.v3.Table.GroupResult.collapsed_column_result:type_name -> factset.protobuf.stach.v3.Table.CollapsedColumnResult + 5, // 4: factset.protobuf.stach.v3.Table.CustomMetadataEntry.value:type_name -> factset.protobuf.stach.v3.MetadataItem + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_fds_protobuf_stach_v3_Table_proto_init() } +func file_fds_protobuf_stach_v3_Table_proto_init() { + if File_fds_protobuf_stach_v3_Table_proto != nil { + return + } + file_fds_protobuf_stach_v3_MetadataItem_proto_init() + if !protoimpl.UnsafeEnabled { + file_fds_protobuf_stach_v3_Table_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Table); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_Table_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Table_GroupResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_Table_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Table_CollapsedColumnResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_Table_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Table_SplitResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fds_protobuf_stach_v3_Table_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fds_protobuf_stach_v3_Table_proto_goTypes, + DependencyIndexes: file_fds_protobuf_stach_v3_Table_proto_depIdxs, + MessageInfos: file_fds_protobuf_stach_v3_Table_proto_msgTypes, + }.Build() + File_fds_protobuf_stach_v3_Table_proto = out.File + file_fds_protobuf_stach_v3_Table_proto_rawDesc = nil + file_fds_protobuf_stach_v3_Table_proto_goTypes = nil + file_fds_protobuf_stach_v3_Table_proto_depIdxs = nil +} diff --git a/go/fds/protobuf/stach/v3/TableView.pb.go b/go/fds/protobuf/stach/v3/TableView.pb.go new file mode 100644 index 0000000..e38a23f --- /dev/null +++ b/go/fds/protobuf/stach/v3/TableView.pb.go @@ -0,0 +1,556 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0-devel +// protoc v3.12.3 +// source: fds/protobuf/stach/v3/TableView.proto + +package v3 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// +//A set of metadata specifying the settings that instruct how to turn tabular data into a rendered table. +type TableView struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The human readable display name for the table. + //Optional. + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // + //The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns. + //An empty array will display no columns. The order of the column names is the order the columns will be displayed. + //Required. + Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` + // + //The human-readable header values of columns to be applied. + //Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }` + //Optional. + Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // + //The group algorithm to be applied. + //Optional. + Group *TableView_Group `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + // + //The split algorithm to be applied. + //Optional. + Split *TableView_Split `protobuf:"bytes,5,opt,name=split,proto3" json:"split,omitempty"` + // + //The custom metadata. + //Optional. + CustomMetadata map[string]*MetadataItem `protobuf:"bytes,100,rep,name=custom_metadata,json=customMetadata,proto3" json:"custom_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *TableView) Reset() { + *x = TableView{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TableView) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TableView) ProtoMessage() {} + +func (x *TableView) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TableView.ProtoReflect.Descriptor instead. +func (*TableView) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_TableView_proto_rawDescGZIP(), []int{0} +} + +func (x *TableView) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *TableView) GetColumns() []string { + if x != nil { + return x.Columns + } + return nil +} + +func (x *TableView) GetHeaders() map[string]string { + if x != nil { + return x.Headers + } + return nil +} + +func (x *TableView) GetGroup() *TableView_Group { + if x != nil { + return x.Group + } + return nil +} + +func (x *TableView) GetSplit() *TableView_Split { + if x != nil { + return x.Split + } + return nil +} + +func (x *TableView) GetCustomMetadata() map[string]*MetadataItem { + if x != nil { + return x.CustomMetadata + } + return nil +} + +// +//An algorithm that groups tabular data by a set of columns and produces aggregate rows. +type TableView_Group struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The names of the columns to group by. + //Required. + By []string `protobuf:"bytes,1,rep,name=by,proto3" json:"by,omitempty"` + // + //The settings for the algorithm to create a collapsed column. + //The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column. + //Optional. + CollapsedColumn *TableView_CollapsedColumn `protobuf:"bytes,2,opt,name=collapsed_column,json=collapsedColumn,proto3" json:"collapsed_column,omitempty"` +} + +func (x *TableView_Group) Reset() { + *x = TableView_Group{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TableView_Group) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TableView_Group) ProtoMessage() {} + +func (x *TableView_Group) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TableView_Group.ProtoReflect.Descriptor instead. +func (*TableView_Group) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_TableView_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *TableView_Group) GetBy() []string { + if x != nil { + return x.By + } + return nil +} + +func (x *TableView_Group) GetCollapsedColumn() *TableView_CollapsedColumn { + if x != nil { + return x.CollapsedColumn + } + return nil +} + +// +//A virtual collapsed column. +type TableView_CollapsedColumn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The alias of the collapsed column. + //The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary. + //Required. + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` +} + +func (x *TableView_CollapsedColumn) Reset() { + *x = TableView_CollapsedColumn{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TableView_CollapsedColumn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TableView_CollapsedColumn) ProtoMessage() {} + +func (x *TableView_CollapsedColumn) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TableView_CollapsedColumn.ProtoReflect.Descriptor instead. +func (*TableView_CollapsedColumn) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_TableView_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *TableView_CollapsedColumn) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +// +//An algorithm that vertically splits tabular data and produces a column for each unique value in the columns that were split over. +type TableView_Split struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The alias of the columns generated by the split algorithm. + //A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary. + //Required. + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` + // + //The names of columns to split by. + //Required. + By []string `protobuf:"bytes,2,rep,name=by,proto3" json:"by,omitempty"` + // + //The names of columns to include in the multi-level headers table when splitting. + //Optional. + Include []string `protobuf:"bytes,3,rep,name=include,proto3" json:"include,omitempty"` + // + //The names of columns to split over. + //Required. + Over []string `protobuf:"bytes,4,rep,name=over,proto3" json:"over,omitempty"` + // + //The human-readable header values of `over` columns to be applied. + //Key is the column name, and value is the human-readable value. + //Optional. + Headers map[string]string `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // + //Whether to remove empty split columns or not. + //Default is `false`. + //Optional. + RemoveEmptySplitColumns bool `protobuf:"varint,6,opt,name=remove_empty_split_columns,json=removeEmptySplitColumns,proto3" json:"remove_empty_split_columns,omitempty"` +} + +func (x *TableView_Split) Reset() { + *x = TableView_Split{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TableView_Split) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TableView_Split) ProtoMessage() {} + +func (x *TableView_Split) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_TableView_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TableView_Split.ProtoReflect.Descriptor instead. +func (*TableView_Split) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_TableView_proto_rawDescGZIP(), []int{0, 2} +} + +func (x *TableView_Split) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +func (x *TableView_Split) GetBy() []string { + if x != nil { + return x.By + } + return nil +} + +func (x *TableView_Split) GetInclude() []string { + if x != nil { + return x.Include + } + return nil +} + +func (x *TableView_Split) GetOver() []string { + if x != nil { + return x.Over + } + return nil +} + +func (x *TableView_Split) GetHeaders() map[string]string { + if x != nil { + return x.Headers + } + return nil +} + +func (x *TableView_Split) GetRemoveEmptySplitColumns() bool { + if x != nil { + return x.RemoveEmptySplitColumns + } + return false +} + +var File_fds_protobuf_stach_v3_TableView_proto protoreflect.FileDescriptor + +var file_fds_protobuf_stach_v3_TableView_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, + 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x76, 0x33, 0x1a, 0x28, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf1, 0x07, 0x0a, + 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x2e, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, + 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x2e, 0x53, 0x70, 0x6c, 0x69, + 0x74, 0x52, 0x05, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x12, 0x61, 0x0a, 0x0f, 0x63, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x64, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x38, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x78, 0x0a, 0x05, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x02, 0x62, 0x79, 0x12, 0x5f, 0x0a, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, + 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, + 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x56, 0x69, 0x65, 0x77, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x1a, 0x27, 0x0a, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, + 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x1a, 0xa7, + 0x02, 0x0a, 0x05, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x0e, + 0x0a, 0x02, 0x62, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x62, 0x79, 0x12, 0x18, + 0x0a, 0x07, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x76, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x07, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, + 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, + 0x69, 0x65, 0x77, 0x2e, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, + 0x3b, 0x0a, 0x1a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, + 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x53, 0x70, 0x6c, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6a, 0x0a, 0x13, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, + 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x42, 0x89, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, + 0x76, 0x33, 0x42, 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, + 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, + 0xaa, 0x02, 0x19, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_fds_protobuf_stach_v3_TableView_proto_rawDescOnce sync.Once + file_fds_protobuf_stach_v3_TableView_proto_rawDescData = file_fds_protobuf_stach_v3_TableView_proto_rawDesc +) + +func file_fds_protobuf_stach_v3_TableView_proto_rawDescGZIP() []byte { + file_fds_protobuf_stach_v3_TableView_proto_rawDescOnce.Do(func() { + file_fds_protobuf_stach_v3_TableView_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v3_TableView_proto_rawDescData) + }) + return file_fds_protobuf_stach_v3_TableView_proto_rawDescData +} + +var file_fds_protobuf_stach_v3_TableView_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_fds_protobuf_stach_v3_TableView_proto_goTypes = []interface{}{ + (*TableView)(nil), // 0: factset.protobuf.stach.v3.TableView + (*TableView_Group)(nil), // 1: factset.protobuf.stach.v3.TableView.Group + (*TableView_CollapsedColumn)(nil), // 2: factset.protobuf.stach.v3.TableView.CollapsedColumn + (*TableView_Split)(nil), // 3: factset.protobuf.stach.v3.TableView.Split + nil, // 4: factset.protobuf.stach.v3.TableView.HeadersEntry + nil, // 5: factset.protobuf.stach.v3.TableView.CustomMetadataEntry + nil, // 6: factset.protobuf.stach.v3.TableView.Split.HeadersEntry + (*MetadataItem)(nil), // 7: factset.protobuf.stach.v3.MetadataItem +} +var file_fds_protobuf_stach_v3_TableView_proto_depIdxs = []int32{ + 4, // 0: factset.protobuf.stach.v3.TableView.headers:type_name -> factset.protobuf.stach.v3.TableView.HeadersEntry + 1, // 1: factset.protobuf.stach.v3.TableView.group:type_name -> factset.protobuf.stach.v3.TableView.Group + 3, // 2: factset.protobuf.stach.v3.TableView.split:type_name -> factset.protobuf.stach.v3.TableView.Split + 5, // 3: factset.protobuf.stach.v3.TableView.custom_metadata:type_name -> factset.protobuf.stach.v3.TableView.CustomMetadataEntry + 2, // 4: factset.protobuf.stach.v3.TableView.Group.collapsed_column:type_name -> factset.protobuf.stach.v3.TableView.CollapsedColumn + 6, // 5: factset.protobuf.stach.v3.TableView.Split.headers:type_name -> factset.protobuf.stach.v3.TableView.Split.HeadersEntry + 7, // 6: factset.protobuf.stach.v3.TableView.CustomMetadataEntry.value:type_name -> factset.protobuf.stach.v3.MetadataItem + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_fds_protobuf_stach_v3_TableView_proto_init() } +func file_fds_protobuf_stach_v3_TableView_proto_init() { + if File_fds_protobuf_stach_v3_TableView_proto != nil { + return + } + file_fds_protobuf_stach_v3_MetadataItem_proto_init() + if !protoimpl.UnsafeEnabled { + file_fds_protobuf_stach_v3_TableView_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TableView); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_TableView_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TableView_Group); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_TableView_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TableView_CollapsedColumn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_TableView_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TableView_Split); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fds_protobuf_stach_v3_TableView_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fds_protobuf_stach_v3_TableView_proto_goTypes, + DependencyIndexes: file_fds_protobuf_stach_v3_TableView_proto_depIdxs, + MessageInfos: file_fds_protobuf_stach_v3_TableView_proto_msgTypes, + }.Build() + File_fds_protobuf_stach_v3_TableView_proto = out.File + file_fds_protobuf_stach_v3_TableView_proto_rawDesc = nil + file_fds_protobuf_stach_v3_TableView_proto_goTypes = nil + file_fds_protobuf_stach_v3_TableView_proto_depIdxs = nil +} diff --git a/go/fds/protobuf/stach/v3/Views.pb.go b/go/fds/protobuf/stach/v3/Views.pb.go new file mode 100644 index 0000000..472ab4f --- /dev/null +++ b/go/fds/protobuf/stach/v3/Views.pb.go @@ -0,0 +1,288 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0-devel +// protoc v3.12.3 +// source: fds/protobuf/stach/v3/Views.proto + +package v3 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// +//A set of a metadata specifying one or more views for rendering a table. +type Views struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The views. + //The first view is considered the default view when rendering the table. + //Required. + Views []*Views_View `protobuf:"bytes,1,rep,name=views,proto3" json:"views,omitempty"` +} + +func (x *Views) Reset() { + *x = Views{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Views_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Views) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Views) ProtoMessage() {} + +func (x *Views) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Views_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Views.ProtoReflect.Descriptor instead. +func (*Views) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Views_proto_rawDescGZIP(), []int{0} +} + +func (x *Views) GetViews() []*Views_View { + if x != nil { + return x.Views + } + return nil +} + +// +//A view for rendering a table. +type Views_View struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + //The name of the view. + //Required. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // + //The display name that describes the type of view. + //This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc. + //Optional. + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // + //The type of view to render the table. + //Required. + // + // Types that are assignable to Type: + // *Views_View_Table + Type isViews_View_Type `protobuf_oneof:"type"` +} + +func (x *Views_View) Reset() { + *x = Views_View{} + if protoimpl.UnsafeEnabled { + mi := &file_fds_protobuf_stach_v3_Views_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Views_View) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Views_View) ProtoMessage() {} + +func (x *Views_View) ProtoReflect() protoreflect.Message { + mi := &file_fds_protobuf_stach_v3_Views_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Views_View.ProtoReflect.Descriptor instead. +func (*Views_View) Descriptor() ([]byte, []int) { + return file_fds_protobuf_stach_v3_Views_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *Views_View) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Views_View) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (m *Views_View) GetType() isViews_View_Type { + if m != nil { + return m.Type + } + return nil +} + +func (x *Views_View) GetTable() *TableView { + if x, ok := x.GetType().(*Views_View_Table); ok { + return x.Table + } + return nil +} + +type isViews_View_Type interface { + isViews_View_Type() +} + +type Views_View_Table struct { + // + //The instructions to render tabular data into a rendered table. + Table *TableView `protobuf:"bytes,3,opt,name=table,proto3,oneof"` +} + +func (*Views_View_Table) isViews_View_Type() {} + +var File_fds_protobuf_stach_v3_Views_proto protoreflect.FileDescriptor + +var file_fds_protobuf_stach_v3_Views_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x56, 0x69, 0x65, 0x77, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x1a, 0x25, + 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, + 0x63, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x05, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, + 0x3b, 0x0a, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x73, + 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x1a, 0x83, 0x01, 0x0a, + 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, + 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x05, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x61, + 0x63, 0x74, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x69, 0x65, + 0x77, 0x48, 0x00, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x42, 0x85, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x73, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x68, 0x2e, 0x76, 0x33, 0x42, 0x0a, 0x56, 0x69, 0x65, 0x77, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x61, 0x63, + 0x74, 0x73, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x2d, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x68, 0x2f, 0x76, 0x33, 0xaa, 0x02, + 0x19, 0x46, 0x61, 0x63, 0x74, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x68, 0x2e, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_fds_protobuf_stach_v3_Views_proto_rawDescOnce sync.Once + file_fds_protobuf_stach_v3_Views_proto_rawDescData = file_fds_protobuf_stach_v3_Views_proto_rawDesc +) + +func file_fds_protobuf_stach_v3_Views_proto_rawDescGZIP() []byte { + file_fds_protobuf_stach_v3_Views_proto_rawDescOnce.Do(func() { + file_fds_protobuf_stach_v3_Views_proto_rawDescData = protoimpl.X.CompressGZIP(file_fds_protobuf_stach_v3_Views_proto_rawDescData) + }) + return file_fds_protobuf_stach_v3_Views_proto_rawDescData +} + +var file_fds_protobuf_stach_v3_Views_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_fds_protobuf_stach_v3_Views_proto_goTypes = []interface{}{ + (*Views)(nil), // 0: factset.protobuf.stach.v3.Views + (*Views_View)(nil), // 1: factset.protobuf.stach.v3.Views.View + (*TableView)(nil), // 2: factset.protobuf.stach.v3.TableView +} +var file_fds_protobuf_stach_v3_Views_proto_depIdxs = []int32{ + 1, // 0: factset.protobuf.stach.v3.Views.views:type_name -> factset.protobuf.stach.v3.Views.View + 2, // 1: factset.protobuf.stach.v3.Views.View.table:type_name -> factset.protobuf.stach.v3.TableView + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_fds_protobuf_stach_v3_Views_proto_init() } +func file_fds_protobuf_stach_v3_Views_proto_init() { + if File_fds_protobuf_stach_v3_Views_proto != nil { + return + } + file_fds_protobuf_stach_v3_TableView_proto_init() + if !protoimpl.UnsafeEnabled { + file_fds_protobuf_stach_v3_Views_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Views); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fds_protobuf_stach_v3_Views_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Views_View); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_fds_protobuf_stach_v3_Views_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Views_View_Table)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_fds_protobuf_stach_v3_Views_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_fds_protobuf_stach_v3_Views_proto_goTypes, + DependencyIndexes: file_fds_protobuf_stach_v3_Views_proto_depIdxs, + MessageInfos: file_fds_protobuf_stach_v3_Views_proto_msgTypes, + }.Build() + File_fds_protobuf_stach_v3_Views_proto = out.File + file_fds_protobuf_stach_v3_Views_proto_rawDesc = nil + file_fds_protobuf_stach_v3_Views_proto_goTypes = nil + file_fds_protobuf_stach_v3_Views_proto_depIdxs = nil +} diff --git a/go/fds/protobuf/stach/v2/go.mod b/go/fds/protobuf/stach/v3/go.mod similarity index 53% rename from go/fds/protobuf/stach/v2/go.mod rename to go/fds/protobuf/stach/v3/go.mod index ebc6a66..6b832cd 100644 --- a/go/fds/protobuf/stach/v2/go.mod +++ b/go/fds/protobuf/stach/v3/go.mod @@ -1,8 +1,8 @@ -module github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2 +module github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3 go 1.14 require ( - github.com/golang/protobuf v1.4.3 - google.golang.org/protobuf v1.25.0 + github.com/golang/protobuf v1.5.2 + google.golang.org/protobuf v1.28.0 ) diff --git a/go/fds/protobuf/stach/v3/go.sum b/go/fds/protobuf/stach/v3/go.sum new file mode 100644 index 0000000..e648ad2 --- /dev/null +++ b/go/fds/protobuf/stach/v3/go.sum @@ -0,0 +1,9 @@ +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/java/CI/build-sdk.sh b/java/CI/build-sdk.sh index da01651..a3be241 100755 --- a/java/CI/build-sdk.sh +++ b/java/CI/build-sdk.sh @@ -6,4 +6,4 @@ BASE_PATH=/src # Base location of Java generated classes cd $BASE_PATH mvn clean install -q -f pom.xml -echo Built package \ No newline at end of file +echo Built package diff --git a/java/pom.xml b/java/pom.xml index 85e4e9f..972fe65 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -5,8 +5,8 @@ 4.0.0 com.factset.protobuf - stach.v2 - stach.v2 + stach.v3 + stach.v3 1.0.0 https://github.com/factset/stachschema-sdks Google Protocol buffer classes for FactSet STACH tabular format which represents complex multi-dimensional array of data. These classes help in the serialization and deserialization of STACH formatted data. See GitHub repository documentation for more information. diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/PackageProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/PackageProto.java deleted file mode 100644 index 980f3f1..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/PackageProto.java +++ /dev/null @@ -1,1351 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/Package.proto - -package com.factset.protobuf.stach.v2; - -public final class PackageProto { - private PackageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PackageOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.Package) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @return A list containing the primaryTableIds. - */ - java.util.List - getPrimaryTableIdsList(); - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @return The count of primaryTableIds. - */ - int getPrimaryTableIdsCount(); - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @param index The index of the element to return. - * @return The primaryTableIds at the given index. - */ - java.lang.String getPrimaryTableIds(int index); - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @param index The index of the value to return. - * @return The bytes of the primaryTableIds at the given index. - */ - com.google.protobuf.ByteString - getPrimaryTableIdsBytes(int index); - - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - int getTablesCount(); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - boolean containsTables( - java.lang.String key); - /** - * Use {@link #getTablesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTables(); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - java.util.Map - getTablesMap(); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - - com.factset.protobuf.stach.v2.table.TableProto.Table getTablesOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.TableProto.Table defaultValue); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - - com.factset.protobuf.stach.v2.table.TableProto.Table getTablesOrThrow( - java.lang.String key); - } - /** - *
-   * A column organized package of tables
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.Package} - */ - public static final class Package extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.Package) - PackageOrBuilder { - private static final long serialVersionUID = 0L; - // Use Package.newBuilder() to construct. - private Package(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Package() { - version_ = ""; - primaryTableIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Package(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Package( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - primaryTableIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - primaryTableIds_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tables_ = com.google.protobuf.MapField.newMapField( - TablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - tables__ = input.readMessage( - TablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tables_.getMutableMap().put( - tables__.getKey(), tables__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - primaryTableIds_ = primaryTableIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.PackageProto.internal_static_factset_protobuf_stach_v2_Package_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetTables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.PackageProto.internal_static_factset_protobuf_stach_v2_Package_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.PackageProto.Package.class, com.factset.protobuf.stach.v2.PackageProto.Package.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIMARY_TABLE_IDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList primaryTableIds_; - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @return A list containing the primaryTableIds. - */ - public com.google.protobuf.ProtocolStringList - getPrimaryTableIdsList() { - return primaryTableIds_; - } - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @return The count of primaryTableIds. - */ - public int getPrimaryTableIdsCount() { - return primaryTableIds_.size(); - } - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @param index The index of the element to return. - * @return The primaryTableIds at the given index. - */ - public java.lang.String getPrimaryTableIds(int index) { - return primaryTableIds_.get(index); - } - /** - *
-     * The array of primary table ids
-     * 
- * - * repeated string primary_table_ids = 2; - * @param index The index of the value to return. - * @return The bytes of the primaryTableIds at the given index. - */ - public com.google.protobuf.ByteString - getPrimaryTableIdsBytes(int index) { - return primaryTableIds_.getByteString(index); - } - - public static final int TABLES_FIELD_NUMBER = 3; - private static final class TablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.TableProto.Table> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.PackageProto.internal_static_factset_protobuf_stach_v2_Package_TablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.TableProto.Table.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.TableProto.Table> tables_; - private com.google.protobuf.MapField - internalGetTables() { - if (tables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TablesDefaultEntryHolder.defaultEntry); - } - return tables_; - } - - public int getTablesCount() { - return internalGetTables().getMap().size(); - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - - @java.lang.Override - public boolean containsTables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTables().getMap().containsKey(key); - } - /** - * Use {@link #getTablesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTables() { - return getTablesMap(); - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - @java.lang.Override - - public java.util.Map getTablesMap() { - return internalGetTables().getMap(); - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.TableProto.Table getTablesOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.TableProto.Table defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.TableProto.Table getTablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - for (int i = 0; i < primaryTableIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryTableIds_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTables(), - TablesDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - { - int dataSize = 0; - for (int i = 0; i < primaryTableIds_.size(); i++) { - dataSize += computeStringSizeNoTag(primaryTableIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrimaryTableIdsList().size(); - } - for (java.util.Map.Entry entry - : internalGetTables().getMap().entrySet()) { - com.google.protobuf.MapEntry - tables__ = TablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tables__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.PackageProto.Package)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.PackageProto.Package other = (com.factset.protobuf.stach.v2.PackageProto.Package) obj; - - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getPrimaryTableIdsList() - .equals(other.getPrimaryTableIdsList())) return false; - if (!internalGetTables().equals( - other.internalGetTables())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (getPrimaryTableIdsCount() > 0) { - hash = (37 * hash) + PRIMARY_TABLE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryTableIdsList().hashCode(); - } - if (!internalGetTables().getMap().isEmpty()) { - hash = (37 * hash) + TABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetTables().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.PackageProto.Package parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.PackageProto.Package prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A column organized package of tables
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.Package} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.Package) - com.factset.protobuf.stach.v2.PackageProto.PackageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.PackageProto.internal_static_factset_protobuf_stach_v2_Package_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetTables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableTables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.PackageProto.internal_static_factset_protobuf_stach_v2_Package_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.PackageProto.Package.class, com.factset.protobuf.stach.v2.PackageProto.Package.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.PackageProto.Package.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - primaryTableIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTables().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.PackageProto.internal_static_factset_protobuf_stach_v2_Package_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.PackageProto.Package getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.PackageProto.Package.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.PackageProto.Package build() { - com.factset.protobuf.stach.v2.PackageProto.Package result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.PackageProto.Package buildPartial() { - com.factset.protobuf.stach.v2.PackageProto.Package result = new com.factset.protobuf.stach.v2.PackageProto.Package(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; - if (((bitField0_ & 0x00000001) != 0)) { - primaryTableIds_ = primaryTableIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.primaryTableIds_ = primaryTableIds_; - result.tables_ = internalGetTables(); - result.tables_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.PackageProto.Package) { - return mergeFrom((com.factset.protobuf.stach.v2.PackageProto.Package)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.PackageProto.Package other) { - if (other == com.factset.protobuf.stach.v2.PackageProto.Package.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.primaryTableIds_.isEmpty()) { - if (primaryTableIds_.isEmpty()) { - primaryTableIds_ = other.primaryTableIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrimaryTableIdsIsMutable(); - primaryTableIds_.addAll(other.primaryTableIds_); - } - onChanged(); - } - internalGetMutableTables().mergeFrom( - other.internalGetTables()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.PackageProto.Package parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.PackageProto.Package) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object version_ = ""; - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList primaryTableIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePrimaryTableIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - primaryTableIds_ = new com.google.protobuf.LazyStringArrayList(primaryTableIds_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @return A list containing the primaryTableIds. - */ - public com.google.protobuf.ProtocolStringList - getPrimaryTableIdsList() { - return primaryTableIds_.getUnmodifiableView(); - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @return The count of primaryTableIds. - */ - public int getPrimaryTableIdsCount() { - return primaryTableIds_.size(); - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @param index The index of the element to return. - * @return The primaryTableIds at the given index. - */ - public java.lang.String getPrimaryTableIds(int index) { - return primaryTableIds_.get(index); - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @param index The index of the value to return. - * @return The bytes of the primaryTableIds at the given index. - */ - public com.google.protobuf.ByteString - getPrimaryTableIdsBytes(int index) { - return primaryTableIds_.getByteString(index); - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @param index The index to set the value at. - * @param value The primaryTableIds to set. - * @return This builder for chaining. - */ - public Builder setPrimaryTableIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryTableIdsIsMutable(); - primaryTableIds_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @param value The primaryTableIds to add. - * @return This builder for chaining. - */ - public Builder addPrimaryTableIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryTableIdsIsMutable(); - primaryTableIds_.add(value); - onChanged(); - return this; - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @param values The primaryTableIds to add. - * @return This builder for chaining. - */ - public Builder addAllPrimaryTableIds( - java.lang.Iterable values) { - ensurePrimaryTableIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, primaryTableIds_); - onChanged(); - return this; - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @return This builder for chaining. - */ - public Builder clearPrimaryTableIds() { - primaryTableIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The array of primary table ids
-       * 
- * - * repeated string primary_table_ids = 2; - * @param value The bytes of the primaryTableIds to add. - * @return This builder for chaining. - */ - public Builder addPrimaryTableIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrimaryTableIdsIsMutable(); - primaryTableIds_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.TableProto.Table> tables_; - private com.google.protobuf.MapField - internalGetTables() { - if (tables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TablesDefaultEntryHolder.defaultEntry); - } - return tables_; - } - private com.google.protobuf.MapField - internalGetMutableTables() { - onChanged();; - if (tables_ == null) { - tables_ = com.google.protobuf.MapField.newMapField( - TablesDefaultEntryHolder.defaultEntry); - } - if (!tables_.isMutable()) { - tables_ = tables_.copy(); - } - return tables_; - } - - public int getTablesCount() { - return internalGetTables().getMap().size(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - - @java.lang.Override - public boolean containsTables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTables().getMap().containsKey(key); - } - /** - * Use {@link #getTablesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTables() { - return getTablesMap(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - @java.lang.Override - - public java.util.Map getTablesMap() { - return internalGetTables().getMap(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.TableProto.Table getTablesOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.TableProto.Table defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.TableProto.Table getTablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTables() { - internalGetMutableTables().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - - public Builder removeTables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTables().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTables() { - return internalGetMutableTables().getMutableMap(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - public Builder putTables( - java.lang.String key, - com.factset.protobuf.stach.v2.table.TableProto.Table value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTables().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.Table> tables = 3; - */ - - public Builder putAllTables( - java.util.Map values) { - internalGetMutableTables().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.Package) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.Package) - private static final com.factset.protobuf.stach.v2.PackageProto.Package DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.PackageProto.Package(); - } - - public static com.factset.protobuf.stach.v2.PackageProto.Package getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Package parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Package(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.PackageProto.Package getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_Package_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_Package_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_Package_TablesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_Package_TablesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#fds/protobuf/stach/v2/Package.proto\022\031f" + - "actset.protobuf.stach.v2\032\'fds/protobuf/s" + - "tach/v2/table/Table.proto\"\314\001\n\007Package\022\017\n" + - "\007version\030\001 \001(\t\022\031\n\021primary_table_ids\030\002 \003(" + - "\t\022>\n\006tables\030\003 \003(\0132..factset.protobuf.sta" + - "ch.v2.Package.TablesEntry\032U\n\013TablesEntry" + - "\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.factset.p" + - "rotobuf.stach.v2.table.Table:\0028\001B\207\001\n\035com" + - ".factset.protobuf.stach.v2B\014PackageProto" + - "Z - * The version of the STACH schema. Formatted {major}.{minor} - * - * - * string version = 1; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - int getTablesCount(); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - boolean containsTables( - java.lang.String key); - /** - * Use {@link #getTablesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTables(); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - java.util.Map - getTablesMap(); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getTablesOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table defaultValue); - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getTablesOrThrow( - java.lang.String key); - } - /** - *
-   * A row organized package of tables
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage} - */ - public static final class RowOrganizedPackage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage) - RowOrganizedPackageOrBuilder { - private static final long serialVersionUID = 0L; - // Use RowOrganizedPackage.newBuilder() to construct. - private RowOrganizedPackage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RowOrganizedPackage() { - version_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RowOrganizedPackage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RowOrganizedPackage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tables_ = com.google.protobuf.MapField.newMapField( - TablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - tables__ = input.readMessage( - TablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tables_.getMutableMap().put( - tables__.getKey(), tables__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Builder.class); - } - - public interface TableOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.Table) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - * @return Whether the definition field is set. - */ - boolean hasDefinition(); - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - * @return The definition. - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getDefinition(); - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder getDefinitionOrBuilder(); - - /** - *
-       * The headers definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - * @return Whether the headersDefinition field is set. - */ - boolean hasHeadersDefinition(); - /** - *
-       * The headers definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - * @return The headersDefinition. - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getHeadersDefinition(); - /** - *
-       * The headers definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder getHeadersDefinitionOrBuilder(); - - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - * @return The data. - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData getData(); - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder getDataOrBuilder(); - } - /** - *
-     * A row organized table
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.Table} - */ - public static final class Table extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.Table) - TableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Table.newBuilder() to construct. - private Table(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Table() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Table(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Table( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder subBuilder = null; - if (definition_ != null) { - subBuilder = definition_.toBuilder(); - } - definition_ = input.readMessage(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(definition_); - definition_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder subBuilder = null; - if (headersDefinition_ != null) { - subBuilder = headersDefinition_.toBuilder(); - } - headersDefinition_ = input.readMessage(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(headersDefinition_); - headersDefinition_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.Builder.class); - } - - public static final int DEFINITION_FIELD_NUMBER = 1; - private com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition definition_; - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - * @return Whether the definition field is set. - */ - @java.lang.Override - public boolean hasDefinition() { - return definition_ != null; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - * @return The definition. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getDefinition() { - return definition_ == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance() : definition_; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder getDefinitionOrBuilder() { - return getDefinition(); - } - - public static final int HEADERS_DEFINITION_FIELD_NUMBER = 2; - private com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition headersDefinition_; - /** - *
-       * The headers definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - * @return Whether the headersDefinition field is set. - */ - @java.lang.Override - public boolean hasHeadersDefinition() { - return headersDefinition_ != null; - } - /** - *
-       * The headers definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - * @return The headersDefinition. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getHeadersDefinition() { - return headersDefinition_ == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance() : headersDefinition_; - } - /** - *
-       * The headers definition
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder getHeadersDefinitionOrBuilder() { - return getHeadersDefinition(); - } - - public static final int DATA_FIELD_NUMBER = 3; - private com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData data_; - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - * @return The data. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData getData() { - return data_ == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.getDefaultInstance() : data_; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (definition_ != null) { - output.writeMessage(1, getDefinition()); - } - if (headersDefinition_ != null) { - output.writeMessage(2, getHeadersDefinition()); - } - if (data_ != null) { - output.writeMessage(3, getData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (definition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDefinition()); - } - if (headersDefinition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeadersDefinition()); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table) obj; - - if (hasDefinition() != other.hasDefinition()) return false; - if (hasDefinition()) { - if (!getDefinition() - .equals(other.getDefinition())) return false; - } - if (hasHeadersDefinition() != other.hasHeadersDefinition()) return false; - if (hasHeadersDefinition()) { - if (!getHeadersDefinition() - .equals(other.getHeadersDefinition())) return false; - } - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDefinition()) { - hash = (37 * hash) + DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + getDefinition().hashCode(); - } - if (hasHeadersDefinition()) { - hash = (37 * hash) + HEADERS_DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + getHeadersDefinition().hashCode(); - } - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A row organized table
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.Table} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.Table) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (definitionBuilder_ == null) { - definition_ = null; - } else { - definition_ = null; - definitionBuilder_ = null; - } - if (headersDefinitionBuilder_ == null) { - headersDefinition_ = null; - } else { - headersDefinition_ = null; - headersDefinitionBuilder_ = null; - } - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table(this); - if (definitionBuilder_ == null) { - result.definition_ = definition_; - } else { - result.definition_ = definitionBuilder_.build(); - } - if (headersDefinitionBuilder_ == null) { - result.headersDefinition_ = headersDefinition_; - } else { - result.headersDefinition_ = headersDefinitionBuilder_.build(); - } - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.getDefaultInstance()) return this; - if (other.hasDefinition()) { - mergeDefinition(other.getDefinition()); - } - if (other.hasHeadersDefinition()) { - mergeHeadersDefinition(other.getHeadersDefinition()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition definition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder> definitionBuilder_; - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - * @return Whether the definition field is set. - */ - public boolean hasDefinition() { - return definitionBuilder_ != null || definition_ != null; - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - * @return The definition. - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getDefinition() { - if (definitionBuilder_ == null) { - return definition_ == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance() : definition_; - } else { - return definitionBuilder_.getMessage(); - } - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - public Builder setDefinition(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition value) { - if (definitionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - definition_ = value; - onChanged(); - } else { - definitionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - public Builder setDefinition( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder builderForValue) { - if (definitionBuilder_ == null) { - definition_ = builderForValue.build(); - onChanged(); - } else { - definitionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - public Builder mergeDefinition(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition value) { - if (definitionBuilder_ == null) { - if (definition_ != null) { - definition_ = - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.newBuilder(definition_).mergeFrom(value).buildPartial(); - } else { - definition_ = value; - } - onChanged(); - } else { - definitionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - public Builder clearDefinition() { - if (definitionBuilder_ == null) { - definition_ = null; - onChanged(); - } else { - definition_ = null; - definitionBuilder_ = null; - } - - return this; - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder getDefinitionBuilder() { - - onChanged(); - return getDefinitionFieldBuilder().getBuilder(); - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder getDefinitionOrBuilder() { - if (definitionBuilder_ != null) { - return definitionBuilder_.getMessageOrBuilder(); - } else { - return definition_ == null ? - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance() : definition_; - } - } - /** - *
-         * The definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition definition = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder> - getDefinitionFieldBuilder() { - if (definitionBuilder_ == null) { - definitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder>( - getDefinition(), - getParentForChildren(), - isClean()); - definition_ = null; - } - return definitionBuilder_; - } - - private com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition headersDefinition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder> headersDefinitionBuilder_; - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - * @return Whether the headersDefinition field is set. - */ - public boolean hasHeadersDefinition() { - return headersDefinitionBuilder_ != null || headersDefinition_ != null; - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - * @return The headersDefinition. - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getHeadersDefinition() { - if (headersDefinitionBuilder_ == null) { - return headersDefinition_ == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance() : headersDefinition_; - } else { - return headersDefinitionBuilder_.getMessage(); - } - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - public Builder setHeadersDefinition(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition value) { - if (headersDefinitionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - headersDefinition_ = value; - onChanged(); - } else { - headersDefinitionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - public Builder setHeadersDefinition( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder builderForValue) { - if (headersDefinitionBuilder_ == null) { - headersDefinition_ = builderForValue.build(); - onChanged(); - } else { - headersDefinitionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - public Builder mergeHeadersDefinition(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition value) { - if (headersDefinitionBuilder_ == null) { - if (headersDefinition_ != null) { - headersDefinition_ = - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.newBuilder(headersDefinition_).mergeFrom(value).buildPartial(); - } else { - headersDefinition_ = value; - } - onChanged(); - } else { - headersDefinitionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - public Builder clearHeadersDefinition() { - if (headersDefinitionBuilder_ == null) { - headersDefinition_ = null; - onChanged(); - } else { - headersDefinition_ = null; - headersDefinitionBuilder_ = null; - } - - return this; - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder getHeadersDefinitionBuilder() { - - onChanged(); - return getHeadersDefinitionFieldBuilder().getBuilder(); - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder getHeadersDefinitionOrBuilder() { - if (headersDefinitionBuilder_ != null) { - return headersDefinitionBuilder_.getMessageOrBuilder(); - } else { - return headersDefinition_ == null ? - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance() : headersDefinition_; - } - } - /** - *
-         * The headers definition
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition headers_definition = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder> - getHeadersDefinitionFieldBuilder() { - if (headersDefinitionBuilder_ == null) { - headersDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder>( - getHeadersDefinition(), - getParentForChildren(), - isClean()); - headersDefinition_ = null; - } - return headersDefinitionBuilder_; - } - - private com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData data_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder> dataBuilder_; - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - * @return Whether the data field is set. - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - * @return The data. - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData getData() { - if (dataBuilder_ == null) { - return data_ == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - public Builder setData(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - public Builder setData( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - public Builder mergeData(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.getDefaultInstance() : data_; - } - } - /** - *
-         * The data
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.TableData data = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.Table) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.Table) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Table parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Table(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TableDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - java.util.List - getColumnsList(); - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index); - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - int getColumnsCount(); - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - java.util.List - getColumnsOrBuilderList(); - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder( - int index); - } - /** - *
-     * A table definition
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} - */ - public static final class TableDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition) - TableDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableDefinition.newBuilder() to construct. - private TableDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableDefinition() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableDefinition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableDefinition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder.class); - } - - public static final int COLUMNS_FIELD_NUMBER = 1; - private java.util.List columns_; - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - @java.lang.Override - public java.util.List getColumnsList() { - return columns_; - } - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - @java.lang.Override - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - @java.lang.Override - public int getColumnsCount() { - return columns_.size(); - } - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) { - return columns_.get(index); - } - /** - *
-       * The column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder( - int index) { - return columns_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < columns_.size(); i++) { - output.writeMessage(1, columns_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, columns_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition) obj; - - if (!getColumnsList() - .equals(other.getColumnsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A table definition
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition(this); - int from_bitField0_ = bitField0_; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> columnsBuilder_; - - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder setColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder setColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder addColumns(com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder addColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder addColumns( - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder addColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.getDefaultInstance()); - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.getDefaultInstance()); - } - /** - *
-         * The column definitions
-         * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableDefinition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TableDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.TableData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - java.util.List - getRowsList(); - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row getRows(int index); - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - int getRowsCount(); - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - java.util.List - getRowsOrBuilderList(); - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder getRowsOrBuilder( - int index); - - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - int getTableMetadataCount(); - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - boolean containsTableMetadata( - java.lang.String key); - /** - * Use {@link #getTableMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTableMetadata(); - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - java.util.Map - getTableMetadataMap(); - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getTableMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue); - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getTableMetadataOrThrow( - java.lang.String key); - - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - int getColumnMetadataCount(); - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - boolean containsColumnMetadata( - java.lang.String key); - /** - * Use {@link #getColumnMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getColumnMetadata(); - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - java.util.Map - getColumnMetadataMap(); - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getColumnMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata defaultValue); - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getColumnMetadataOrThrow( - java.lang.String key); - } - /** - *
-     * A table data
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.TableData} - */ - public static final class TableData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.TableData) - TableDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableData.newBuilder() to construct. - private TableData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableData() { - rows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rows_.add( - input.readMessage(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tableMetadata_ = com.google.protobuf.MapField.newMapField( - TableMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - tableMetadata__ = input.readMessage( - TableMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tableMetadata_.getMutableMap().put( - tableMetadata__.getKey(), tableMetadata__.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - columnMetadata_ = com.google.protobuf.MapField.newMapField( - ColumnMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - columnMetadata__ = input.readMessage( - ColumnMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - columnMetadata_.getMutableMap().put( - columnMetadata__.getKey(), columnMetadata__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTableMetadata(); - case 3: - return internalGetColumnMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder.class); - } - - public static final int ROWS_FIELD_NUMBER = 1; - private java.util.List rows_; - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row getRows(int index) { - return rows_.get(index); - } - /** - *
-       * The rows
-       * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder getRowsOrBuilder( - int index) { - return rows_.get(index); - } - - public static final int TABLE_METADATA_FIELD_NUMBER = 2; - private static final class TableMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_TableMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> tableMetadata_; - private com.google.protobuf.MapField - internalGetTableMetadata() { - if (tableMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TableMetadataDefaultEntryHolder.defaultEntry); - } - return tableMetadata_; - } - - public int getTableMetadataCount() { - return internalGetTableMetadata().getMap().size(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - - @java.lang.Override - public boolean containsTableMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTableMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getTableMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTableMetadata() { - return getTableMetadataMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - @java.lang.Override - - public java.util.Map getTableMetadataMap() { - return internalGetTableMetadata().getMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getTableMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTableMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: metadataitem id) of metadata at the table location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getTableMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTableMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int COLUMN_METADATA_FIELD_NUMBER = 3; - private static final class ColumnMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_ColumnMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata> columnMetadata_; - private com.google.protobuf.MapField - internalGetColumnMetadata() { - if (columnMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnMetadataDefaultEntryHolder.defaultEntry); - } - return columnMetadata_; - } - - public int getColumnMetadataCount() { - return internalGetColumnMetadata().getMap().size(); - } - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - - @java.lang.Override - public boolean containsColumnMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumnMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getColumnMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumnMetadata() { - return getColumnMetadataMap(); - } - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - @java.lang.Override - - public java.util.Map getColumnMetadataMap() { - return internalGetColumnMetadata().getMap(); - } - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getColumnMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumnMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: column id) of metadata at the column location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getColumnMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumnMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(1, rows_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTableMetadata(), - TableMetadataDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetColumnMetadata(), - ColumnMetadataDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetTableMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - tableMetadata__ = TableMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tableMetadata__); - } - for (java.util.Map.Entry entry - : internalGetColumnMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - columnMetadata__ = ColumnMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, columnMetadata__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData) obj; - - if (!getRowsList() - .equals(other.getRowsList())) return false; - if (!internalGetTableMetadata().equals( - other.internalGetTableMetadata())) return false; - if (!internalGetColumnMetadata().equals( - other.internalGetColumnMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - if (!internalGetTableMetadata().getMap().isEmpty()) { - hash = (37 * hash) + TABLE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetTableMetadata().hashCode(); - } - if (!internalGetColumnMetadata().getMap().isEmpty()) { - hash = (37 * hash) + COLUMN_METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetColumnMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A table data
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.TableData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.TableData) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTableMetadata(); - case 3: - return internalGetColumnMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableTableMetadata(); - case 3: - return internalGetMutableColumnMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rowsBuilder_.clear(); - } - internalGetMutableTableMetadata().clear(); - internalGetMutableColumnMetadata().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData(this); - int from_bitField0_ = bitField0_; - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - result.tableMetadata_ = internalGetTableMetadata(); - result.tableMetadata_.makeImmutable(); - result.columnMetadata_ = internalGetColumnMetadata(); - result.columnMetadata_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData.getDefaultInstance()) return this; - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000001); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowsFieldBuilder() : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - internalGetMutableTableMetadata().mergeFrom( - other.internalGetTableMetadata()); - internalGetMutableColumnMetadata().mergeFrom( - other.internalGetColumnMetadata()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rows_ = - java.util.Collections.emptyList(); - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder> rowsBuilder_; - - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder setRows( - int index, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder setRows( - int index, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder addRows(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder addRows( - int index, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder addRows( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder addRows( - int index, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder getRowsBuilder( - int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder getRowsOrBuilder( - int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.getDefaultInstance()); - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.getDefaultInstance()); - } - /** - *
-         * The rows
-         * 
- * - * repeated .factset.protobuf.stach.v2.RowOrganizedPackage.Row rows = 1; - */ - public java.util.List - getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder>( - rows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> tableMetadata_; - private com.google.protobuf.MapField - internalGetTableMetadata() { - if (tableMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TableMetadataDefaultEntryHolder.defaultEntry); - } - return tableMetadata_; - } - private com.google.protobuf.MapField - internalGetMutableTableMetadata() { - onChanged();; - if (tableMetadata_ == null) { - tableMetadata_ = com.google.protobuf.MapField.newMapField( - TableMetadataDefaultEntryHolder.defaultEntry); - } - if (!tableMetadata_.isMutable()) { - tableMetadata_ = tableMetadata_.copy(); - } - return tableMetadata_; - } - - public int getTableMetadataCount() { - return internalGetTableMetadata().getMap().size(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - - @java.lang.Override - public boolean containsTableMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTableMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getTableMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTableMetadata() { - return getTableMetadataMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - @java.lang.Override - - public java.util.Map getTableMetadataMap() { - return internalGetTableMetadata().getMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getTableMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTableMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getTableMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTableMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTableMetadata() { - internalGetMutableTableMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - - public Builder removeTableMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTableMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTableMetadata() { - return internalGetMutableTableMetadata().getMutableMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - public Builder putTableMetadata( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTableMetadata().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the table location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> table_metadata = 2; - */ - - public Builder putAllTableMetadata( - java.util.Map values) { - internalGetMutableTableMetadata().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata> columnMetadata_; - private com.google.protobuf.MapField - internalGetColumnMetadata() { - if (columnMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnMetadataDefaultEntryHolder.defaultEntry); - } - return columnMetadata_; - } - private com.google.protobuf.MapField - internalGetMutableColumnMetadata() { - onChanged();; - if (columnMetadata_ == null) { - columnMetadata_ = com.google.protobuf.MapField.newMapField( - ColumnMetadataDefaultEntryHolder.defaultEntry); - } - if (!columnMetadata_.isMutable()) { - columnMetadata_ = columnMetadata_.copy(); - } - return columnMetadata_; - } - - public int getColumnMetadataCount() { - return internalGetColumnMetadata().getMap().size(); - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - - @java.lang.Override - public boolean containsColumnMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumnMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getColumnMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumnMetadata() { - return getColumnMetadataMap(); - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - @java.lang.Override - - public java.util.Map getColumnMetadataMap() { - return internalGetColumnMetadata().getMap(); - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getColumnMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumnMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getColumnMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumnMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearColumnMetadata() { - internalGetMutableColumnMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - - public Builder removeColumnMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumnMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableColumnMetadata() { - return internalGetMutableColumnMetadata().getMutableMap(); - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - public Builder putColumnMetadata( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumnMetadata().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: column id) of metadata at the column location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata> column_metadata = 3; - */ - - public Builder putAllColumnMetadata( - java.util.Map values) { - internalGetMutableColumnMetadata().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.TableData) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.TableData) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.TableData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RowOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.Row) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The row id
-       * 
- * - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-       * The row id
-       * 
- * - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-       * The row type
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return The enum numeric value on the wire for rowType. - */ - int getRowTypeValue(); - /** - *
-       * The row type
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return The rowType. - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType getRowType(); - - /** - *
-       * The list of cell values
-       * 
- * - * .google.protobuf.ListValue cells = 3; - * @return Whether the cells field is set. - */ - boolean hasCells(); - /** - *
-       * The list of cell values
-       * 
- * - * .google.protobuf.ListValue cells = 3; - * @return The cells. - */ - com.google.protobuf.ListValue getCells(); - /** - *
-       * The list of cell values
-       * 
- * - * .google.protobuf.ListValue cells = 3; - */ - com.google.protobuf.ListValueOrBuilder getCellsOrBuilder(); - - /** - *
-       * The map of cell values
-       * 
- * - * .google.protobuf.Struct values = 4; - * @return Whether the values field is set. - */ - boolean hasValues(); - /** - *
-       * The map of cell values
-       * 
- * - * .google.protobuf.Struct values = 4; - * @return The values. - */ - com.google.protobuf.Struct getValues(); - /** - *
-       * The map of cell values
-       * 
- * - * .google.protobuf.Struct values = 4; - */ - com.google.protobuf.StructOrBuilder getValuesOrBuilder(); - - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - int getCellDetailsCount(); - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - boolean containsCellDetails( - java.lang.String key); - /** - * Use {@link #getCellDetailsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCellDetails(); - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - java.util.Map - getCellDetailsMap(); - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getCellDetailsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail defaultValue); - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getCellDetailsOrThrow( - java.lang.String key); - - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - int getHeaderCellDetailsCount(); - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - boolean containsHeaderCellDetails( - java.lang.String key); - /** - * Use {@link #getHeaderCellDetailsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getHeaderCellDetails(); - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - java.util.Map - getHeaderCellDetailsMap(); - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getHeaderCellDetailsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail defaultValue); - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getHeaderCellDetailsOrThrow( - java.lang.String key); - - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - int getRowMetadataCount(); - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - boolean containsRowMetadata( - java.lang.String key); - /** - * Use {@link #getRowMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRowMetadata(); - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - java.util.Map - getRowMetadataMap(); - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue); - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrThrow( - java.lang.String key); - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.KindCase getKindCase(); - } - /** - *
-     * A row
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.Row} - */ - public static final class Row extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.Row) - RowOrBuilder { - private static final long serialVersionUID = 0L; - // Use Row.newBuilder() to construct. - private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Row() { - id_ = ""; - rowType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Row(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Row( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - rowType_ = rawValue; - break; - } - case 26: { - com.google.protobuf.ListValue.Builder subBuilder = null; - if (kindCase_ == 3) { - subBuilder = ((com.google.protobuf.ListValue) kind_).toBuilder(); - } - kind_ = - input.readMessage(com.google.protobuf.ListValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.ListValue) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 3; - break; - } - case 34: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (kindCase_ == 4) { - subBuilder = ((com.google.protobuf.Struct) kind_).toBuilder(); - } - kind_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Struct) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 4; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cellDetails_ = com.google.protobuf.MapField.newMapField( - CellDetailsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - cellDetails__ = input.readMessage( - CellDetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - cellDetails_.getMutableMap().put( - cellDetails__.getKey(), cellDetails__.getValue()); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - headerCellDetails_ = com.google.protobuf.MapField.newMapField( - HeaderCellDetailsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - headerCellDetails__ = input.readMessage( - HeaderCellDetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - headerCellDetails_.getMutableMap().put( - headerCellDetails__.getKey(), headerCellDetails__.getValue()); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rowMetadata_ = com.google.protobuf.MapField.newMapField( - RowMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - rowMetadata__ = input.readMessage( - RowMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rowMetadata_.getMutableMap().put( - rowMetadata__.getKey(), rowMetadata__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetCellDetails(); - case 6: - return internalGetHeaderCellDetails(); - case 7: - return internalGetRowMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder.class); - } - - /** - *
-       * A type of row
-       * 
- * - * Protobuf enum {@code factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType} - */ - public enum RowType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-         * A body row
-         * 
- * - * Body = 0; - */ - Body(0), - /** - *
-         * A header row
-         * 
- * - * Header = 1; - */ - Header(1), - UNRECOGNIZED(-1), - ; - - /** - *
-         * A body row
-         * 
- * - * Body = 0; - */ - public static final int Body_VALUE = 0; - /** - *
-         * A header row
-         * 
- * - * Header = 1; - */ - public static final int Header_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RowType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RowType forNumber(int value) { - switch (value) { - case 0: return Body; - case 1: return Header; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RowType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RowType findValueByNumber(int number) { - return RowType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.getDescriptor().getEnumTypes().get(0); - } - - private static final RowType[] VALUES = values(); - - public static RowType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RowType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType) - } - - private int kindCase_ = 0; - private java.lang.Object kind_; - public enum KindCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CELLS(3), - VALUES(4), - KIND_NOT_SET(0); - private final int value; - private KindCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 3: return CELLS; - case 4: return VALUES; - case 0: return KIND_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-       * The row id
-       * 
- * - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-       * The row id
-       * 
- * - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROW_TYPE_FIELD_NUMBER = 2; - private int rowType_; - /** - *
-       * The row type
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return The enum numeric value on the wire for rowType. - */ - @java.lang.Override public int getRowTypeValue() { - return rowType_; - } - /** - *
-       * The row type
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return The rowType. - */ - @java.lang.Override public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType getRowType() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType result = com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType.valueOf(rowType_); - return result == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType.UNRECOGNIZED : result; - } - - public static final int CELLS_FIELD_NUMBER = 3; - /** - *
-       * The list of cell values
-       * 
- * - * .google.protobuf.ListValue cells = 3; - * @return Whether the cells field is set. - */ - @java.lang.Override - public boolean hasCells() { - return kindCase_ == 3; - } - /** - *
-       * The list of cell values
-       * 
- * - * .google.protobuf.ListValue cells = 3; - * @return The cells. - */ - @java.lang.Override - public com.google.protobuf.ListValue getCells() { - if (kindCase_ == 3) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - /** - *
-       * The list of cell values
-       * 
- * - * .google.protobuf.ListValue cells = 3; - */ - @java.lang.Override - public com.google.protobuf.ListValueOrBuilder getCellsOrBuilder() { - if (kindCase_ == 3) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - - public static final int VALUES_FIELD_NUMBER = 4; - /** - *
-       * The map of cell values
-       * 
- * - * .google.protobuf.Struct values = 4; - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return kindCase_ == 4; - } - /** - *
-       * The map of cell values
-       * 
- * - * .google.protobuf.Struct values = 4; - * @return The values. - */ - @java.lang.Override - public com.google.protobuf.Struct getValues() { - if (kindCase_ == 4) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - *
-       * The map of cell values
-       * 
- * - * .google.protobuf.Struct values = 4; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getValuesOrBuilder() { - if (kindCase_ == 4) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - - public static final int CELL_DETAILS_FIELD_NUMBER = 5; - private static final class CellDetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_CellDetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail> cellDetails_; - private com.google.protobuf.MapField - internalGetCellDetails() { - if (cellDetails_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CellDetailsDefaultEntryHolder.defaultEntry); - } - return cellDetails_; - } - - public int getCellDetailsCount() { - return internalGetCellDetails().getMap().size(); - } - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - - @java.lang.Override - public boolean containsCellDetails( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetCellDetails().getMap().containsKey(key); - } - /** - * Use {@link #getCellDetailsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCellDetails() { - return getCellDetailsMap(); - } - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - @java.lang.Override - - public java.util.Map getCellDetailsMap() { - return internalGetCellDetails().getMap(); - } - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getCellDetailsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellDetails().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The details for a body row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getCellDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellDetails().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int HEADER_CELL_DETAILS_FIELD_NUMBER = 6; - private static final class HeaderCellDetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_HeaderCellDetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail> headerCellDetails_; - private com.google.protobuf.MapField - internalGetHeaderCellDetails() { - if (headerCellDetails_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HeaderCellDetailsDefaultEntryHolder.defaultEntry); - } - return headerCellDetails_; - } - - public int getHeaderCellDetailsCount() { - return internalGetHeaderCellDetails().getMap().size(); - } - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - - @java.lang.Override - public boolean containsHeaderCellDetails( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHeaderCellDetails().getMap().containsKey(key); - } - /** - * Use {@link #getHeaderCellDetailsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaderCellDetails() { - return getHeaderCellDetailsMap(); - } - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - @java.lang.Override - - public java.util.Map getHeaderCellDetailsMap() { - return internalGetHeaderCellDetails().getMap(); - } - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getHeaderCellDetailsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHeaderCellDetails().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The details for a header row cell
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getHeaderCellDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHeaderCellDetails().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ROW_METADATA_FIELD_NUMBER = 7; - private static final class RowMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_RowMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> rowMetadata_; - private com.google.protobuf.MapField - internalGetRowMetadata() { - if (rowMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RowMetadataDefaultEntryHolder.defaultEntry); - } - return rowMetadata_; - } - - public int getRowMetadataCount() { - return internalGetRowMetadata().getMap().size(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - - @java.lang.Override - public boolean containsRowMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRowMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getRowMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRowMetadata() { - return getRowMetadataMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - @java.lang.Override - - public java.util.Map getRowMetadataMap() { - return internalGetRowMetadata().getMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRowMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: metadataitem id) of metadata at the row location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRowMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (rowType_ != com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType.Body.getNumber()) { - output.writeEnum(2, rowType_); - } - if (kindCase_ == 3) { - output.writeMessage(3, (com.google.protobuf.ListValue) kind_); - } - if (kindCase_ == 4) { - output.writeMessage(4, (com.google.protobuf.Struct) kind_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCellDetails(), - CellDetailsDefaultEntryHolder.defaultEntry, - 5); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHeaderCellDetails(), - HeaderCellDetailsDefaultEntryHolder.defaultEntry, - 6); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRowMetadata(), - RowMetadataDefaultEntryHolder.defaultEntry, - 7); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (rowType_ != com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType.Body.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, rowType_); - } - if (kindCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.ListValue) kind_); - } - if (kindCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.protobuf.Struct) kind_); - } - for (java.util.Map.Entry entry - : internalGetCellDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry - cellDetails__ = CellDetailsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, cellDetails__); - } - for (java.util.Map.Entry entry - : internalGetHeaderCellDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry - headerCellDetails__ = HeaderCellDetailsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, headerCellDetails__); - } - for (java.util.Map.Entry entry - : internalGetRowMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - rowMetadata__ = RowMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, rowMetadata__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row) obj; - - if (!getId() - .equals(other.getId())) return false; - if (rowType_ != other.rowType_) return false; - if (!internalGetCellDetails().equals( - other.internalGetCellDetails())) return false; - if (!internalGetHeaderCellDetails().equals( - other.internalGetHeaderCellDetails())) return false; - if (!internalGetRowMetadata().equals( - other.internalGetRowMetadata())) return false; - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 3: - if (!getCells() - .equals(other.getCells())) return false; - break; - case 4: - if (!getValues() - .equals(other.getValues())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + ROW_TYPE_FIELD_NUMBER; - hash = (53 * hash) + rowType_; - if (!internalGetCellDetails().getMap().isEmpty()) { - hash = (37 * hash) + CELL_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + internalGetCellDetails().hashCode(); - } - if (!internalGetHeaderCellDetails().getMap().isEmpty()) { - hash = (37 * hash) + HEADER_CELL_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeaderCellDetails().hashCode(); - } - if (!internalGetRowMetadata().getMap().isEmpty()) { - hash = (37 * hash) + ROW_METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetRowMetadata().hashCode(); - } - switch (kindCase_) { - case 3: - hash = (37 * hash) + CELLS_FIELD_NUMBER; - hash = (53 * hash) + getCells().hashCode(); - break; - case 4: - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A row
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.Row} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.Row) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetCellDetails(); - case 6: - return internalGetHeaderCellDetails(); - case 7: - return internalGetRowMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableCellDetails(); - case 6: - return internalGetMutableHeaderCellDetails(); - case 7: - return internalGetMutableRowMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - rowType_ = 0; - - internalGetMutableCellDetails().clear(); - internalGetMutableHeaderCellDetails().clear(); - internalGetMutableRowMetadata().clear(); - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.rowType_ = rowType_; - if (kindCase_ == 3) { - if (cellsBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = cellsBuilder_.build(); - } - } - if (kindCase_ == 4) { - if (valuesBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = valuesBuilder_.build(); - } - } - result.cellDetails_ = internalGetCellDetails(); - result.cellDetails_.makeImmutable(); - result.headerCellDetails_ = internalGetHeaderCellDetails(); - result.headerCellDetails_.makeImmutable(); - result.rowMetadata_ = internalGetRowMetadata(); - result.rowMetadata_.makeImmutable(); - result.kindCase_ = kindCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.rowType_ != 0) { - setRowTypeValue(other.getRowTypeValue()); - } - internalGetMutableCellDetails().mergeFrom( - other.internalGetCellDetails()); - internalGetMutableHeaderCellDetails().mergeFrom( - other.internalGetHeaderCellDetails()); - internalGetMutableRowMetadata().mergeFrom( - other.internalGetRowMetadata()); - switch (other.getKindCase()) { - case CELLS: { - mergeCells(other.getCells()); - break; - } - case VALUES: { - mergeValues(other.getValues()); - break; - } - case KIND_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int kindCase_ = 0; - private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-         * The row id
-         * 
- * - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * The row id
-         * 
- * - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * The row id
-         * 
- * - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-         * The row id
-         * 
- * - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-         * The row id
-         * 
- * - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private int rowType_ = 0; - /** - *
-         * The row type
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return The enum numeric value on the wire for rowType. - */ - @java.lang.Override public int getRowTypeValue() { - return rowType_; - } - /** - *
-         * The row type
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @param value The enum numeric value on the wire for rowType to set. - * @return This builder for chaining. - */ - public Builder setRowTypeValue(int value) { - - rowType_ = value; - onChanged(); - return this; - } - /** - *
-         * The row type
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return The rowType. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType getRowType() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType result = com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType.valueOf(rowType_); - return result == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType.UNRECOGNIZED : result; - } - /** - *
-         * The row type
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @param value The rowType to set. - * @return This builder for chaining. - */ - public Builder setRowType(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row.RowType value) { - if (value == null) { - throw new NullPointerException(); - } - - rowType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * The row type
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType row_type = 2; - * @return This builder for chaining. - */ - public Builder clearRowType() { - - rowType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> cellsBuilder_; - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - * @return Whether the cells field is set. - */ - @java.lang.Override - public boolean hasCells() { - return kindCase_ == 3; - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - * @return The cells. - */ - @java.lang.Override - public com.google.protobuf.ListValue getCells() { - if (cellsBuilder_ == null) { - if (kindCase_ == 3) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } else { - if (kindCase_ == 3) { - return cellsBuilder_.getMessage(); - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - public Builder setCells(com.google.protobuf.ListValue value) { - if (cellsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - cellsBuilder_.setMessage(value); - } - kindCase_ = 3; - return this; - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - public Builder setCells( - com.google.protobuf.ListValue.Builder builderForValue) { - if (cellsBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - cellsBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 3; - return this; - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - public Builder mergeCells(com.google.protobuf.ListValue value) { - if (cellsBuilder_ == null) { - if (kindCase_ == 3 && - kind_ != com.google.protobuf.ListValue.getDefaultInstance()) { - kind_ = com.google.protobuf.ListValue.newBuilder((com.google.protobuf.ListValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 3) { - cellsBuilder_.mergeFrom(value); - } - cellsBuilder_.setMessage(value); - } - kindCase_ = 3; - return this; - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - public Builder clearCells() { - if (cellsBuilder_ == null) { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - } - cellsBuilder_.clear(); - } - return this; - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - public com.google.protobuf.ListValue.Builder getCellsBuilder() { - return getCellsFieldBuilder().getBuilder(); - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - @java.lang.Override - public com.google.protobuf.ListValueOrBuilder getCellsOrBuilder() { - if ((kindCase_ == 3) && (cellsBuilder_ != null)) { - return cellsBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 3) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - } - /** - *
-         * The list of cell values
-         * 
- * - * .google.protobuf.ListValue cells = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> - getCellsFieldBuilder() { - if (cellsBuilder_ == null) { - if (!(kindCase_ == 3)) { - kind_ = com.google.protobuf.ListValue.getDefaultInstance(); - } - cellsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - (com.google.protobuf.ListValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 3; - onChanged();; - return cellsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> valuesBuilder_; - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return kindCase_ == 4; - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - * @return The values. - */ - @java.lang.Override - public com.google.protobuf.Struct getValues() { - if (valuesBuilder_ == null) { - if (kindCase_ == 4) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } else { - if (kindCase_ == 4) { - return valuesBuilder_.getMessage(); - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - public Builder setValues(com.google.protobuf.Struct value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - kindCase_ = 4; - return this; - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - public Builder setValues( - com.google.protobuf.Struct.Builder builderForValue) { - if (valuesBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 4; - return this; - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - public Builder mergeValues(com.google.protobuf.Struct value) { - if (valuesBuilder_ == null) { - if (kindCase_ == 4 && - kind_ != com.google.protobuf.Struct.getDefaultInstance()) { - kind_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 4) { - valuesBuilder_.mergeFrom(value); - } - valuesBuilder_.setMessage(value); - } - kindCase_ = 4; - return this; - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - } - valuesBuilder_.clear(); - } - return this; - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - public com.google.protobuf.Struct.Builder getValuesBuilder() { - return getValuesFieldBuilder().getBuilder(); - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getValuesOrBuilder() { - if ((kindCase_ == 4) && (valuesBuilder_ != null)) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 4) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - *
-         * The map of cell values
-         * 
- * - * .google.protobuf.Struct values = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - if (!(kindCase_ == 4)) { - kind_ = com.google.protobuf.Struct.getDefaultInstance(); - } - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 4; - onChanged();; - return valuesBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail> cellDetails_; - private com.google.protobuf.MapField - internalGetCellDetails() { - if (cellDetails_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CellDetailsDefaultEntryHolder.defaultEntry); - } - return cellDetails_; - } - private com.google.protobuf.MapField - internalGetMutableCellDetails() { - onChanged();; - if (cellDetails_ == null) { - cellDetails_ = com.google.protobuf.MapField.newMapField( - CellDetailsDefaultEntryHolder.defaultEntry); - } - if (!cellDetails_.isMutable()) { - cellDetails_ = cellDetails_.copy(); - } - return cellDetails_; - } - - public int getCellDetailsCount() { - return internalGetCellDetails().getMap().size(); - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - - @java.lang.Override - public boolean containsCellDetails( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetCellDetails().getMap().containsKey(key); - } - /** - * Use {@link #getCellDetailsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCellDetails() { - return getCellDetailsMap(); - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - @java.lang.Override - - public java.util.Map getCellDetailsMap() { - return internalGetCellDetails().getMap(); - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getCellDetailsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellDetails().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getCellDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellDetails().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCellDetails() { - internalGetMutableCellDetails().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - - public Builder removeCellDetails( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCellDetails().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCellDetails() { - return internalGetMutableCellDetails().getMutableMap(); - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - public Builder putCellDetails( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCellDetails().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The details for a body row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail> cell_details = 5; - */ - - public Builder putAllCellDetails( - java.util.Map values) { - internalGetMutableCellDetails().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail> headerCellDetails_; - private com.google.protobuf.MapField - internalGetHeaderCellDetails() { - if (headerCellDetails_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HeaderCellDetailsDefaultEntryHolder.defaultEntry); - } - return headerCellDetails_; - } - private com.google.protobuf.MapField - internalGetMutableHeaderCellDetails() { - onChanged();; - if (headerCellDetails_ == null) { - headerCellDetails_ = com.google.protobuf.MapField.newMapField( - HeaderCellDetailsDefaultEntryHolder.defaultEntry); - } - if (!headerCellDetails_.isMutable()) { - headerCellDetails_ = headerCellDetails_.copy(); - } - return headerCellDetails_; - } - - public int getHeaderCellDetailsCount() { - return internalGetHeaderCellDetails().getMap().size(); - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - - @java.lang.Override - public boolean containsHeaderCellDetails( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHeaderCellDetails().getMap().containsKey(key); - } - /** - * Use {@link #getHeaderCellDetailsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaderCellDetails() { - return getHeaderCellDetailsMap(); - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - @java.lang.Override - - public java.util.Map getHeaderCellDetailsMap() { - return internalGetHeaderCellDetails().getMap(); - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getHeaderCellDetailsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHeaderCellDetails().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getHeaderCellDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHeaderCellDetails().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHeaderCellDetails() { - internalGetMutableHeaderCellDetails().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - - public Builder removeHeaderCellDetails( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHeaderCellDetails().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableHeaderCellDetails() { - return internalGetMutableHeaderCellDetails().getMutableMap(); - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - public Builder putHeaderCellDetails( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHeaderCellDetails().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The details for a header row cell
-         * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail> header_cell_details = 6; - */ - - public Builder putAllHeaderCellDetails( - java.util.Map values) { - internalGetMutableHeaderCellDetails().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> rowMetadata_; - private com.google.protobuf.MapField - internalGetRowMetadata() { - if (rowMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RowMetadataDefaultEntryHolder.defaultEntry); - } - return rowMetadata_; - } - private com.google.protobuf.MapField - internalGetMutableRowMetadata() { - onChanged();; - if (rowMetadata_ == null) { - rowMetadata_ = com.google.protobuf.MapField.newMapField( - RowMetadataDefaultEntryHolder.defaultEntry); - } - if (!rowMetadata_.isMutable()) { - rowMetadata_ = rowMetadata_.copy(); - } - return rowMetadata_; - } - - public int getRowMetadataCount() { - return internalGetRowMetadata().getMap().size(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - - @java.lang.Override - public boolean containsRowMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRowMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getRowMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRowMetadata() { - return getRowMetadataMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - @java.lang.Override - - public java.util.Map getRowMetadataMap() { - return internalGetRowMetadata().getMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRowMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRowMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRowMetadata() { - internalGetMutableRowMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - - public Builder removeRowMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRowMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRowMetadata() { - return internalGetMutableRowMetadata().getMutableMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - public Builder putRowMetadata( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRowMetadata().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the row location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> row_metadata = 7; - */ - - public Builder putAllRowMetadata( - java.util.Map values) { - internalGetMutableRowMetadata().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.Row) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.Row) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Row(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Row getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CellDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The group level
-       * 
- * - * int32 group_level = 1; - * @return The groupLevel. - */ - int getGroupLevel(); - - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - * @return Whether the cellDefinition field is set. - */ - boolean hasCellDefinition(); - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - * @return The cellDefinition. - */ - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getCellDefinition(); - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getCellDefinitionOrBuilder(); - - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - int getCellMetadataCount(); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - boolean containsCellMetadata( - java.lang.String key); - /** - * Use {@link #getCellMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCellMetadata(); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - java.util.Map - getCellMetadataMap(); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrThrow( - java.lang.String key); - } - /** - *
-     * A body row cell detail
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} - */ - public static final class CellDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail) - CellDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use CellDetail.newBuilder() to construct. - private CellDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CellDetail() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CellDetail(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CellDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - groupLevel_ = input.readInt32(); - break; - } - case 18: { - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder subBuilder = null; - if (cellDefinition_ != null) { - subBuilder = cellDefinition_.toBuilder(); - } - cellDefinition_ = input.readMessage(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cellDefinition_); - cellDefinition_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cellMetadata_ = com.google.protobuf.MapField.newMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - cellMetadata__ = input.readMessage( - CellMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - cellMetadata_.getMutableMap().put( - cellMetadata__.getKey(), cellMetadata__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetCellMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.Builder.class); - } - - public static final int GROUP_LEVEL_FIELD_NUMBER = 1; - private int groupLevel_; - /** - *
-       * The group level
-       * 
- * - * int32 group_level = 1; - * @return The groupLevel. - */ - @java.lang.Override - public int getGroupLevel() { - return groupLevel_; - } - - public static final int CELL_DEFINITION_FIELD_NUMBER = 2; - private com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition cellDefinition_; - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - * @return Whether the cellDefinition field is set. - */ - @java.lang.Override - public boolean hasCellDefinition() { - return cellDefinition_ != null; - } - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - * @return The cellDefinition. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getCellDefinition() { - return cellDefinition_ == null ? com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance() : cellDefinition_; - } - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getCellDefinitionOrBuilder() { - return getCellDefinition(); - } - - public static final int CELL_METADATA_FIELD_NUMBER = 3; - private static final class CellMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_CellMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> cellMetadata_; - private com.google.protobuf.MapField - internalGetCellMetadata() { - if (cellMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - } - return cellMetadata_; - } - - public int getCellMetadataCount() { - return internalGetCellMetadata().getMap().size(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - - @java.lang.Override - public boolean containsCellMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetCellMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getCellMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCellMetadata() { - return getCellMetadataMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - @java.lang.Override - - public java.util.Map getCellMetadataMap() { - return internalGetCellMetadata().getMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (groupLevel_ != 0) { - output.writeInt32(1, groupLevel_); - } - if (cellDefinition_ != null) { - output.writeMessage(2, getCellDefinition()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCellMetadata(), - CellMetadataDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (groupLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, groupLevel_); - } - if (cellDefinition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCellDefinition()); - } - for (java.util.Map.Entry entry - : internalGetCellMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - cellMetadata__ = CellMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, cellMetadata__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail) obj; - - if (getGroupLevel() - != other.getGroupLevel()) return false; - if (hasCellDefinition() != other.hasCellDefinition()) return false; - if (hasCellDefinition()) { - if (!getCellDefinition() - .equals(other.getCellDefinition())) return false; - } - if (!internalGetCellMetadata().equals( - other.internalGetCellMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GROUP_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getGroupLevel(); - if (hasCellDefinition()) { - hash = (37 * hash) + CELL_DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + getCellDefinition().hashCode(); - } - if (!internalGetCellMetadata().getMap().isEmpty()) { - hash = (37 * hash) + CELL_METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetCellMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A body row cell detail
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetCellMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableCellMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - groupLevel_ = 0; - - if (cellDefinitionBuilder_ == null) { - cellDefinition_ = null; - } else { - cellDefinition_ = null; - cellDefinitionBuilder_ = null; - } - internalGetMutableCellMetadata().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail(this); - int from_bitField0_ = bitField0_; - result.groupLevel_ = groupLevel_; - if (cellDefinitionBuilder_ == null) { - result.cellDefinition_ = cellDefinition_; - } else { - result.cellDefinition_ = cellDefinitionBuilder_.build(); - } - result.cellMetadata_ = internalGetCellMetadata(); - result.cellMetadata_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail.getDefaultInstance()) return this; - if (other.getGroupLevel() != 0) { - setGroupLevel(other.getGroupLevel()); - } - if (other.hasCellDefinition()) { - mergeCellDefinition(other.getCellDefinition()); - } - internalGetMutableCellMetadata().mergeFrom( - other.internalGetCellMetadata()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int groupLevel_ ; - /** - *
-         * The group level
-         * 
- * - * int32 group_level = 1; - * @return The groupLevel. - */ - @java.lang.Override - public int getGroupLevel() { - return groupLevel_; - } - /** - *
-         * The group level
-         * 
- * - * int32 group_level = 1; - * @param value The groupLevel to set. - * @return This builder for chaining. - */ - public Builder setGroupLevel(int value) { - - groupLevel_ = value; - onChanged(); - return this; - } - /** - *
-         * The group level
-         * 
- * - * int32 group_level = 1; - * @return This builder for chaining. - */ - public Builder clearGroupLevel() { - - groupLevel_ = 0; - onChanged(); - return this; - } - - private com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition cellDefinition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder> cellDefinitionBuilder_; - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - * @return Whether the cellDefinition field is set. - */ - public boolean hasCellDefinition() { - return cellDefinitionBuilder_ != null || cellDefinition_ != null; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - * @return The cellDefinition. - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getCellDefinition() { - if (cellDefinitionBuilder_ == null) { - return cellDefinition_ == null ? com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance() : cellDefinition_; - } else { - return cellDefinitionBuilder_.getMessage(); - } - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - public Builder setCellDefinition(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (cellDefinitionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cellDefinition_ = value; - onChanged(); - } else { - cellDefinitionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - public Builder setCellDefinition( - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder builderForValue) { - if (cellDefinitionBuilder_ == null) { - cellDefinition_ = builderForValue.build(); - onChanged(); - } else { - cellDefinitionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - public Builder mergeCellDefinition(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (cellDefinitionBuilder_ == null) { - if (cellDefinition_ != null) { - cellDefinition_ = - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.newBuilder(cellDefinition_).mergeFrom(value).buildPartial(); - } else { - cellDefinition_ = value; - } - onChanged(); - } else { - cellDefinitionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - public Builder clearCellDefinition() { - if (cellDefinitionBuilder_ == null) { - cellDefinition_ = null; - onChanged(); - } else { - cellDefinition_ = null; - cellDefinitionBuilder_ = null; - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder getCellDefinitionBuilder() { - - onChanged(); - return getCellDefinitionFieldBuilder().getBuilder(); - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getCellDefinitionOrBuilder() { - if (cellDefinitionBuilder_ != null) { - return cellDefinitionBuilder_.getMessageOrBuilder(); - } else { - return cellDefinition_ == null ? - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance() : cellDefinition_; - } - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder> - getCellDefinitionFieldBuilder() { - if (cellDefinitionBuilder_ == null) { - cellDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder>( - getCellDefinition(), - getParentForChildren(), - isClean()); - cellDefinition_ = null; - } - return cellDefinitionBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> cellMetadata_; - private com.google.protobuf.MapField - internalGetCellMetadata() { - if (cellMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - } - return cellMetadata_; - } - private com.google.protobuf.MapField - internalGetMutableCellMetadata() { - onChanged();; - if (cellMetadata_ == null) { - cellMetadata_ = com.google.protobuf.MapField.newMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - } - if (!cellMetadata_.isMutable()) { - cellMetadata_ = cellMetadata_.copy(); - } - return cellMetadata_; - } - - public int getCellMetadataCount() { - return internalGetCellMetadata().getMap().size(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - - @java.lang.Override - public boolean containsCellMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetCellMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getCellMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCellMetadata() { - return getCellMetadataMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - @java.lang.Override - - public java.util.Map getCellMetadataMap() { - return internalGetCellMetadata().getMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCellMetadata() { - internalGetMutableCellMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - - public Builder removeCellMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCellMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCellMetadata() { - return internalGetMutableCellMetadata().getMutableMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - public Builder putCellMetadata( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCellMetadata().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 3; - */ - - public Builder putAllCellMetadata( - java.util.Map values) { - internalGetMutableCellMetadata().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CellDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CellDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.CellDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HeaderCellDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The column span
-       * 
- * - * int32 colspan = 1; - * @return The colspan. - */ - int getColspan(); - - /** - *
-       * The row span
-       * 
- * - * int32 rowspan = 2; - * @return The rowspan. - */ - int getRowspan(); - - /** - *
-       * The table where the row is sourced from
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return The enum numeric value on the wire for source. - */ - int getSourceValue(); - /** - *
-       * The table where the row is sourced from
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return The source. - */ - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource getSource(); - - /** - *
-       * The column index; used to index into the `headers_definition.columns` array
-       * 
- * - * int32 column_index = 4; - * @return The columnIndex. - */ - int getColumnIndex(); - - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - * @return Whether the cellDefinition field is set. - */ - boolean hasCellDefinition(); - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - * @return The cellDefinition. - */ - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getCellDefinition(); - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getCellDefinitionOrBuilder(); - - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - int getCellMetadataCount(); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - boolean containsCellMetadata( - java.lang.String key); - /** - * Use {@link #getCellMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCellMetadata(); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - java.util.Map - getCellMetadataMap(); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue); - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrThrow( - java.lang.String key); - } - /** - *
-     * A header row cell detail
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} - */ - public static final class HeaderCellDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail) - HeaderCellDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeaderCellDetail.newBuilder() to construct. - private HeaderCellDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeaderCellDetail() { - source_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeaderCellDetail(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeaderCellDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - colspan_ = input.readInt32(); - break; - } - case 16: { - - rowspan_ = input.readInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - source_ = rawValue; - break; - } - case 32: { - - columnIndex_ = input.readInt32(); - break; - } - case 42: { - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder subBuilder = null; - if (cellDefinition_ != null) { - subBuilder = cellDefinition_.toBuilder(); - } - cellDefinition_ = input.readMessage(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cellDefinition_); - cellDefinition_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cellMetadata_ = com.google.protobuf.MapField.newMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - cellMetadata__ = input.readMessage( - CellMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - cellMetadata_.getMutableMap().put( - cellMetadata__.getKey(), cellMetadata__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 6: - return internalGetCellMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.Builder.class); - } - - /** - *
-       * A table where a row is sourced from
-       * 
- * - * Protobuf enum {@code factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource} - */ - public enum TableSource - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * NONE = 1; - */ - NONE(1), - /** - * PRIMARY = 2; - */ - PRIMARY(2), - /** - * HEADERS = 3; - */ - HEADERS(3), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * NONE = 1; - */ - public static final int NONE_VALUE = 1; - /** - * PRIMARY = 2; - */ - public static final int PRIMARY_VALUE = 2; - /** - * HEADERS = 3; - */ - public static final int HEADERS_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TableSource valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TableSource forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return NONE; - case 2: return PRIMARY; - case 3: return HEADERS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TableSource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TableSource findValueByNumber(int number) { - return TableSource.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.getDescriptor().getEnumTypes().get(0); - } - - private static final TableSource[] VALUES = values(); - - public static TableSource valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TableSource(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource) - } - - public static final int COLSPAN_FIELD_NUMBER = 1; - private int colspan_; - /** - *
-       * The column span
-       * 
- * - * int32 colspan = 1; - * @return The colspan. - */ - @java.lang.Override - public int getColspan() { - return colspan_; - } - - public static final int ROWSPAN_FIELD_NUMBER = 2; - private int rowspan_; - /** - *
-       * The row span
-       * 
- * - * int32 rowspan = 2; - * @return The rowspan. - */ - @java.lang.Override - public int getRowspan() { - return rowspan_; - } - - public static final int SOURCE_FIELD_NUMBER = 3; - private int source_; - /** - *
-       * The table where the row is sourced from
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return The enum numeric value on the wire for source. - */ - @java.lang.Override public int getSourceValue() { - return source_; - } - /** - *
-       * The table where the row is sourced from
-       * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return The source. - */ - @java.lang.Override public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource getSource() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource result = com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource.valueOf(source_); - return result == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource.UNRECOGNIZED : result; - } - - public static final int COLUMN_INDEX_FIELD_NUMBER = 4; - private int columnIndex_; - /** - *
-       * The column index; used to index into the `headers_definition.columns` array
-       * 
- * - * int32 column_index = 4; - * @return The columnIndex. - */ - @java.lang.Override - public int getColumnIndex() { - return columnIndex_; - } - - public static final int CELL_DEFINITION_FIELD_NUMBER = 5; - private com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition cellDefinition_; - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - * @return Whether the cellDefinition field is set. - */ - @java.lang.Override - public boolean hasCellDefinition() { - return cellDefinition_ != null; - } - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - * @return The cellDefinition. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getCellDefinition() { - return cellDefinition_ == null ? com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance() : cellDefinition_; - } - /** - *
-       * The definition of the cell; overrides the column definition
-       * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getCellDefinitionOrBuilder() { - return getCellDefinition(); - } - - public static final int CELL_METADATA_FIELD_NUMBER = 6; - private static final class CellMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_CellMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> cellMetadata_; - private com.google.protobuf.MapField - internalGetCellMetadata() { - if (cellMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - } - return cellMetadata_; - } - - public int getCellMetadataCount() { - return internalGetCellMetadata().getMap().size(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - - @java.lang.Override - public boolean containsCellMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetCellMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getCellMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCellMetadata() { - return getCellMetadataMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - @java.lang.Override - - public java.util.Map getCellMetadataMap() { - return internalGetCellMetadata().getMap(); - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: metadataitem id) of metadata at the cell location
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (colspan_ != 0) { - output.writeInt32(1, colspan_); - } - if (rowspan_ != 0) { - output.writeInt32(2, rowspan_); - } - if (source_ != com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource.UNKNOWN.getNumber()) { - output.writeEnum(3, source_); - } - if (columnIndex_ != 0) { - output.writeInt32(4, columnIndex_); - } - if (cellDefinition_ != null) { - output.writeMessage(5, getCellDefinition()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCellMetadata(), - CellMetadataDefaultEntryHolder.defaultEntry, - 6); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (colspan_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, colspan_); - } - if (rowspan_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, rowspan_); - } - if (source_ != com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, source_); - } - if (columnIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, columnIndex_); - } - if (cellDefinition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCellDefinition()); - } - for (java.util.Map.Entry entry - : internalGetCellMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - cellMetadata__ = CellMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, cellMetadata__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail) obj; - - if (getColspan() - != other.getColspan()) return false; - if (getRowspan() - != other.getRowspan()) return false; - if (source_ != other.source_) return false; - if (getColumnIndex() - != other.getColumnIndex()) return false; - if (hasCellDefinition() != other.hasCellDefinition()) return false; - if (hasCellDefinition()) { - if (!getCellDefinition() - .equals(other.getCellDefinition())) return false; - } - if (!internalGetCellMetadata().equals( - other.internalGetCellMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLSPAN_FIELD_NUMBER; - hash = (53 * hash) + getColspan(); - hash = (37 * hash) + ROWSPAN_FIELD_NUMBER; - hash = (53 * hash) + getRowspan(); - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + source_; - hash = (37 * hash) + COLUMN_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getColumnIndex(); - if (hasCellDefinition()) { - hash = (37 * hash) + CELL_DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + getCellDefinition().hashCode(); - } - if (!internalGetCellMetadata().getMap().isEmpty()) { - hash = (37 * hash) + CELL_METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetCellMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A header row cell detail
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 6: - return internalGetCellMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 6: - return internalGetMutableCellMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - colspan_ = 0; - - rowspan_ = 0; - - source_ = 0; - - columnIndex_ = 0; - - if (cellDefinitionBuilder_ == null) { - cellDefinition_ = null; - } else { - cellDefinition_ = null; - cellDefinitionBuilder_ = null; - } - internalGetMutableCellMetadata().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail(this); - int from_bitField0_ = bitField0_; - result.colspan_ = colspan_; - result.rowspan_ = rowspan_; - result.source_ = source_; - result.columnIndex_ = columnIndex_; - if (cellDefinitionBuilder_ == null) { - result.cellDefinition_ = cellDefinition_; - } else { - result.cellDefinition_ = cellDefinitionBuilder_.build(); - } - result.cellMetadata_ = internalGetCellMetadata(); - result.cellMetadata_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.getDefaultInstance()) return this; - if (other.getColspan() != 0) { - setColspan(other.getColspan()); - } - if (other.getRowspan() != 0) { - setRowspan(other.getRowspan()); - } - if (other.source_ != 0) { - setSourceValue(other.getSourceValue()); - } - if (other.getColumnIndex() != 0) { - setColumnIndex(other.getColumnIndex()); - } - if (other.hasCellDefinition()) { - mergeCellDefinition(other.getCellDefinition()); - } - internalGetMutableCellMetadata().mergeFrom( - other.internalGetCellMetadata()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int colspan_ ; - /** - *
-         * The column span
-         * 
- * - * int32 colspan = 1; - * @return The colspan. - */ - @java.lang.Override - public int getColspan() { - return colspan_; - } - /** - *
-         * The column span
-         * 
- * - * int32 colspan = 1; - * @param value The colspan to set. - * @return This builder for chaining. - */ - public Builder setColspan(int value) { - - colspan_ = value; - onChanged(); - return this; - } - /** - *
-         * The column span
-         * 
- * - * int32 colspan = 1; - * @return This builder for chaining. - */ - public Builder clearColspan() { - - colspan_ = 0; - onChanged(); - return this; - } - - private int rowspan_ ; - /** - *
-         * The row span
-         * 
- * - * int32 rowspan = 2; - * @return The rowspan. - */ - @java.lang.Override - public int getRowspan() { - return rowspan_; - } - /** - *
-         * The row span
-         * 
- * - * int32 rowspan = 2; - * @param value The rowspan to set. - * @return This builder for chaining. - */ - public Builder setRowspan(int value) { - - rowspan_ = value; - onChanged(); - return this; - } - /** - *
-         * The row span
-         * 
- * - * int32 rowspan = 2; - * @return This builder for chaining. - */ - public Builder clearRowspan() { - - rowspan_ = 0; - onChanged(); - return this; - } - - private int source_ = 0; - /** - *
-         * The table where the row is sourced from
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return The enum numeric value on the wire for source. - */ - @java.lang.Override public int getSourceValue() { - return source_; - } - /** - *
-         * The table where the row is sourced from
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @param value The enum numeric value on the wire for source to set. - * @return This builder for chaining. - */ - public Builder setSourceValue(int value) { - - source_ = value; - onChanged(); - return this; - } - /** - *
-         * The table where the row is sourced from
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return The source. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource getSource() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource result = com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource.valueOf(source_); - return result == null ? com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource.UNRECOGNIZED : result; - } - /** - *
-         * The table where the row is sourced from
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @param value The source to set. - * @return This builder for chaining. - */ - public Builder setSource(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource value) { - if (value == null) { - throw new NullPointerException(); - } - - source_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * The table where the row is sourced from
-         * 
- * - * .factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource source = 3; - * @return This builder for chaining. - */ - public Builder clearSource() { - - source_ = 0; - onChanged(); - return this; - } - - private int columnIndex_ ; - /** - *
-         * The column index; used to index into the `headers_definition.columns` array
-         * 
- * - * int32 column_index = 4; - * @return The columnIndex. - */ - @java.lang.Override - public int getColumnIndex() { - return columnIndex_; - } - /** - *
-         * The column index; used to index into the `headers_definition.columns` array
-         * 
- * - * int32 column_index = 4; - * @param value The columnIndex to set. - * @return This builder for chaining. - */ - public Builder setColumnIndex(int value) { - - columnIndex_ = value; - onChanged(); - return this; - } - /** - *
-         * The column index; used to index into the `headers_definition.columns` array
-         * 
- * - * int32 column_index = 4; - * @return This builder for chaining. - */ - public Builder clearColumnIndex() { - - columnIndex_ = 0; - onChanged(); - return this; - } - - private com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition cellDefinition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder> cellDefinitionBuilder_; - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - * @return Whether the cellDefinition field is set. - */ - public boolean hasCellDefinition() { - return cellDefinitionBuilder_ != null || cellDefinition_ != null; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - * @return The cellDefinition. - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getCellDefinition() { - if (cellDefinitionBuilder_ == null) { - return cellDefinition_ == null ? com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance() : cellDefinition_; - } else { - return cellDefinitionBuilder_.getMessage(); - } - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - public Builder setCellDefinition(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (cellDefinitionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cellDefinition_ = value; - onChanged(); - } else { - cellDefinitionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - public Builder setCellDefinition( - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder builderForValue) { - if (cellDefinitionBuilder_ == null) { - cellDefinition_ = builderForValue.build(); - onChanged(); - } else { - cellDefinitionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - public Builder mergeCellDefinition(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (cellDefinitionBuilder_ == null) { - if (cellDefinition_ != null) { - cellDefinition_ = - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.newBuilder(cellDefinition_).mergeFrom(value).buildPartial(); - } else { - cellDefinition_ = value; - } - onChanged(); - } else { - cellDefinitionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - public Builder clearCellDefinition() { - if (cellDefinitionBuilder_ == null) { - cellDefinition_ = null; - onChanged(); - } else { - cellDefinition_ = null; - cellDefinitionBuilder_ = null; - } - - return this; - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder getCellDefinitionBuilder() { - - onChanged(); - return getCellDefinitionFieldBuilder().getBuilder(); - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getCellDefinitionOrBuilder() { - if (cellDefinitionBuilder_ != null) { - return cellDefinitionBuilder_.getMessageOrBuilder(); - } else { - return cellDefinition_ == null ? - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance() : cellDefinition_; - } - } - /** - *
-         * The definition of the cell; overrides the column definition
-         * 
- * - * .factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder> - getCellDefinitionFieldBuilder() { - if (cellDefinitionBuilder_ == null) { - cellDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder>( - getCellDefinition(), - getParentForChildren(), - isClean()); - cellDefinition_ = null; - } - return cellDefinitionBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> cellMetadata_; - private com.google.protobuf.MapField - internalGetCellMetadata() { - if (cellMetadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - } - return cellMetadata_; - } - private com.google.protobuf.MapField - internalGetMutableCellMetadata() { - onChanged();; - if (cellMetadata_ == null) { - cellMetadata_ = com.google.protobuf.MapField.newMapField( - CellMetadataDefaultEntryHolder.defaultEntry); - } - if (!cellMetadata_.isMutable()) { - cellMetadata_ = cellMetadata_.copy(); - } - return cellMetadata_; - } - - public int getCellMetadataCount() { - return internalGetCellMetadata().getMap().size(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - - @java.lang.Override - public boolean containsCellMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetCellMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getCellMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCellMetadata() { - return getCellMetadataMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - @java.lang.Override - - public java.util.Map getCellMetadataMap() { - return internalGetCellMetadata().getMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getCellMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetCellMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCellMetadata() { - internalGetMutableCellMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - - public Builder removeCellMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCellMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCellMetadata() { - return internalGetMutableCellMetadata().getMutableMap(); - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - public Builder putCellMetadata( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCellMetadata().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: metadataitem id) of metadata at the cell location
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> cell_metadata = 6; - */ - - public Builder putAllCellMetadata( - java.util.Map values) { - internalGetMutableCellMetadata().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeaderCellDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeaderCellDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MapOfMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - int getItemsCount(); - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - boolean containsItems( - java.lang.String key); - /** - * Use {@link #getItemsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getItems(); - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - java.util.Map - getItemsMap(); - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue); - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrThrow( - java.lang.String key); - } - /** - *
-     * A wrapper for a map of metadata items
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} - */ - public static final class MapOfMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata) - MapOfMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use MapOfMetadata.newBuilder() to construct. - private MapOfMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MapOfMetadata() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MapOfMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MapOfMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = com.google.protobuf.MapField.newMapField( - ItemsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - items__ = input.readMessage( - ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - items_.getMutableMap().put( - items__.getKey(), items__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetItems(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.Builder.class); - } - - public static final int ITEMS_FIELD_NUMBER = 1; - private static final class ItemsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_ItemsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> items_; - private com.google.protobuf.MapField - internalGetItems() { - if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); - } - return items_; - } - - public int getItemsCount() { - return internalGetItems().getMap().size(); - } - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetItems().getMap().containsKey(key); - } - /** - * Use {@link #getItemsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getItems() { - return getItemsMap(); - } - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public java.util.Map getItemsMap() { - return internalGetItems().getMap(); - } - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: metadataitem id) metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetItems(), - ItemsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetItems().getMap().entrySet()) { - com.google.protobuf.MapEntry - items__ = ItemsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata) obj; - - if (!internalGetItems().equals( - other.internalGetItems())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetItems().getMap().isEmpty()) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + internalGetItems().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A wrapper for a map of metadata items
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetItems(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableItems(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableItems().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata(this); - int from_bitField0_ = bitField0_; - result.items_ = internalGetItems(); - result.items_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata.getDefaultInstance()) return this; - internalGetMutableItems().mergeFrom( - other.internalGetItems()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> items_; - private com.google.protobuf.MapField - internalGetItems() { - if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); - } - return items_; - } - private com.google.protobuf.MapField - internalGetMutableItems() { - onChanged();; - if (items_ == null) { - items_ = com.google.protobuf.MapField.newMapField( - ItemsDefaultEntryHolder.defaultEntry); - } - if (!items_.isMutable()) { - items_ = items_.copy(); - } - return items_; - } - - public int getItemsCount() { - return internalGetItems().getMap().size(); - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetItems().getMap().containsKey(key); - } - /** - * Use {@link #getItemsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getItems() { - return getItemsMap(); - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public java.util.Map getItemsMap() { - return internalGetItems().getMap(); - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearItems() { - internalGetMutableItems().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - public Builder removeItems( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableItems().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableItems() { - return internalGetMutableItems().getMutableMap(); - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - public Builder putItems( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableItems().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: metadataitem id) metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - public Builder putAllItems( - java.util.Map values) { - internalGetMutableItems().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapOfMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MapOfMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.MapOfMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-     * The version of the STACH schema. Formatted {major}.{minor}
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLES_FIELD_NUMBER = 2; - private static final class TablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table> tables_; - private com.google.protobuf.MapField - internalGetTables() { - if (tables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TablesDefaultEntryHolder.defaultEntry); - } - return tables_; - } - - public int getTablesCount() { - return internalGetTables().getMap().size(); - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - - @java.lang.Override - public boolean containsTables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTables().getMap().containsKey(key); - } - /** - * Use {@link #getTablesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTables() { - return getTablesMap(); - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - @java.lang.Override - - public java.util.Map getTablesMap() { - return internalGetTables().getMap(); - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getTablesOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The map (key: table id) of all tables
-     * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getTablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTables(), - TablesDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - for (java.util.Map.Entry entry - : internalGetTables().getMap().entrySet()) { - com.google.protobuf.MapEntry - tables__ = TablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tables__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage other = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage) obj; - - if (!getVersion() - .equals(other.getVersion())) return false; - if (!internalGetTables().equals( - other.internalGetTables())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (!internalGetTables().getMap().isEmpty()) { - hash = (37 * hash) + TABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetTables().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A row organized package of tables
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.RowOrganizedPackage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.RowOrganizedPackage) - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableTables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.class, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - internalGetMutableTables().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage build() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage buildPartial() { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage result = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; - result.tables_ = internalGetTables(); - result.tables_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage) { - return mergeFrom((com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage other) { - if (other == com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - internalGetMutableTables().mergeFrom( - other.internalGetTables()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object version_ = ""; - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * The version of the STACH schema. Formatted {major}.{minor}
-       * 
- * - * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table> tables_; - private com.google.protobuf.MapField - internalGetTables() { - if (tables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TablesDefaultEntryHolder.defaultEntry); - } - return tables_; - } - private com.google.protobuf.MapField - internalGetMutableTables() { - onChanged();; - if (tables_ == null) { - tables_ = com.google.protobuf.MapField.newMapField( - TablesDefaultEntryHolder.defaultEntry); - } - if (!tables_.isMutable()) { - tables_ = tables_.copy(); - } - return tables_; - } - - public int getTablesCount() { - return internalGetTables().getMap().size(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - - @java.lang.Override - public boolean containsTables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTables().getMap().containsKey(key); - } - /** - * Use {@link #getTablesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTables() { - return getTablesMap(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - @java.lang.Override - - public java.util.Map getTablesMap() { - return internalGetTables().getMap(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getTablesOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table getTablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTables() { - internalGetMutableTables().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - - public Builder removeTables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTables().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTables() { - return internalGetMutableTables().getMutableMap(); - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - public Builder putTables( - java.lang.String key, - com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTables().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The map (key: table id) of all tables
-       * 
- * - * map<string, .factset.protobuf.stach.v2.RowOrganizedPackage.Table> tables = 2; - */ - - public Builder putAllTables( - java.util.Map values) { - internalGetMutableTables().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.RowOrganizedPackage) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.RowOrganizedPackage) - private static final com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage(); - } - - public static com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RowOrganizedPackage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RowOrganizedPackage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TablesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TablesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Table_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableDefinition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_TableMetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_TableMetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_ColumnMetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_TableData_ColumnMetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_CellDetailsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_CellDetailsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_HeaderCellDetailsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_HeaderCellDetailsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_RowMetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_Row_RowMetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_CellMetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_CellDetail_CellMetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_CellMetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_HeaderCellDetail_CellMetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_ItemsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_RowOrganizedPackage_MapOfMetadata_ItemsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(fds/protobuf/stach/v2/RowOrganized.pro" + - "to\022\031factset.protobuf.stach.v2\032.fds/proto" + - "buf/stach/v2/table/MetadataItem.proto\0320f" + - "ds/protobuf/stach/v2/table/CellDefinitio" + - "n.proto\0322fds/protobuf/stach/v2/table/Col" + - "umnDefinition.proto\032\034google/protobuf/str" + - "uct.proto\"\363\026\n\023RowOrganizedPackage\022\017\n\007ver" + - "sion\030\001 \001(\t\022J\n\006tables\030\002 \003(\0132:.factset.pro" + - "tobuf.stach.v2.RowOrganizedPackage.Table" + - "sEntry\032c\n\013TablesEntry\022\013\n\003key\030\001 \001(\t\022C\n\005va" + - "lue\030\002 \001(\01324.factset.protobuf.stach.v2.Ro" + - "wOrganizedPackage.Table:\0028\001\032\377\001\n\005Table\022R\n" + - "\ndefinition\030\001 \001(\0132>.factset.protobuf.sta" + - "ch.v2.RowOrganizedPackage.TableDefinitio" + - "n\022Z\n\022headers_definition\030\002 \001(\0132>.factset." + - "protobuf.stach.v2.RowOrganizedPackage.Ta" + - "bleDefinition\022F\n\004data\030\003 \001(\01328.factset.pr" + - "otobuf.stach.v2.RowOrganizedPackage.Tabl" + - "eData\032U\n\017TableDefinition\022B\n\007columns\030\001 \003(" + - "\01321.factset.protobuf.stach.v2.table.Colu" + - "mnDefinition\032\363\003\n\tTableData\022@\n\004rows\030\001 \003(\013" + - "22.factset.protobuf.stach.v2.RowOrganize" + - "dPackage.Row\022c\n\016table_metadata\030\002 \003(\0132K.f" + - "actset.protobuf.stach.v2.RowOrganizedPac" + - "kage.TableData.TableMetadataEntry\022e\n\017col" + - "umn_metadata\030\003 \003(\0132L.factset.protobuf.st" + - "ach.v2.RowOrganizedPackage.TableData.Col" + - "umnMetadataEntry\032c\n\022TableMetadataEntry\022\013" + - "\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.factset.pro" + - "tobuf.stach.v2.table.MetadataItem:\0028\001\032s\n" + - "\023ColumnMetadataEntry\022\013\n\003key\030\001 \001(\t\022K\n\005val" + - "ue\030\002 \001(\0132<.factset.protobuf.stach.v2.Row" + - "OrganizedPackage.MapOfMetadata:\0028\001\032\313\006\n\003R" + - "ow\022\n\n\002id\030\001 \001(\t\022L\n\010row_type\030\002 \001(\0162:.facts" + - "et.protobuf.stach.v2.RowOrganizedPackage" + - ".Row.RowType\022+\n\005cells\030\003 \001(\0132\032.google.pro" + - "tobuf.ListValueH\000\022)\n\006values\030\004 \001(\0132\027.goog" + - "le.protobuf.StructH\000\022Y\n\014cell_details\030\005 \003" + - "(\0132C.factset.protobuf.stach.v2.RowOrgani" + - "zedPackage.Row.CellDetailsEntry\022f\n\023heade" + - "r_cell_details\030\006 \003(\0132I.factset.protobuf." + - "stach.v2.RowOrganizedPackage.Row.HeaderC" + - "ellDetailsEntry\022Y\n\014row_metadata\030\007 \003(\0132C." + - "factset.protobuf.stach.v2.RowOrganizedPa" + - "ckage.Row.RowMetadataEntry\032m\n\020CellDetail" + - "sEntry\022\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\01329.fac" + - "tset.protobuf.stach.v2.RowOrganizedPacka" + - "ge.CellDetail:\0028\001\032y\n\026HeaderCellDetailsEn" + - "try\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?.factse" + - "t.protobuf.stach.v2.RowOrganizedPackage." + - "HeaderCellDetail:\0028\001\032a\n\020RowMetadataEntry" + - "\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.factset.p" + - "rotobuf.stach.v2.table.MetadataItem:\0028\001\"" + - "\037\n\007RowType\022\010\n\004Body\020\000\022\n\n\006Header\020\001B\006\n\004kind" + - "\032\263\002\n\nCellDetail\022\023\n\013group_level\030\001 \001(\005\022H\n\017" + - "cell_definition\030\002 \001(\0132/.factset.protobuf" + - ".stach.v2.table.CellDefinition\022b\n\rcell_m" + - "etadata\030\003 \003(\0132K.factset.protobuf.stach.v" + - "2.RowOrganizedPackage.CellDetail.CellMet" + - "adataEntry\032b\n\021CellMetadataEntry\022\013\n\003key\030\001" + - " \001(\t\022<\n\005value\030\002 \001(\0132-.factset.protobuf.s" + - "tach.v2.table.MetadataItem:\0028\001\032\377\003\n\020Heade" + - "rCellDetail\022\017\n\007colspan\030\001 \001(\005\022\017\n\007rowspan\030" + - "\002 \001(\005\022[\n\006source\030\003 \001(\0162K.factset.protobuf" + - ".stach.v2.RowOrganizedPackage.HeaderCell" + - "Detail.TableSource\022\024\n\014column_index\030\004 \001(\005" + - "\022H\n\017cell_definition\030\005 \001(\0132/.factset.prot" + - "obuf.stach.v2.table.CellDefinition\022h\n\rce" + - "ll_metadata\030\006 \003(\0132Q.factset.protobuf.sta" + - "ch.v2.RowOrganizedPackage.HeaderCellDeta" + - "il.CellMetadataEntry\032b\n\021CellMetadataEntr" + - "y\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.factset." + - "protobuf.stach.v2.table.MetadataItem:\0028\001" + - "\">\n\013TableSource\022\013\n\007UNKNOWN\020\000\022\010\n\004NONE\020\001\022\013" + - "\n\007PRIMARY\020\002\022\013\n\007HEADERS\020\003\032\304\001\n\rMapOfMetada" + - "ta\022V\n\005items\030\001 \003(\0132G.factset.protobuf.sta" + - "ch.v2.RowOrganizedPackage.MapOfMetadata." + - "ItemsEntry\032[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n" + - "\005value\030\002 \001(\0132-.factset.protobuf.stach.v2" + - ".table.MetadataItem:\0028\001B\214\001\n\035com.factset." + - "protobuf.stach.v2B\021RowOrganizedProtoZ - * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type` - * - * - * string type = 1; - * @return The type. - */ - java.lang.String getType(); - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-     * 
- * - * string type = 1; - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return Whether the format field is set. - */ - boolean hasFormat(); - /** - *
-     * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return The format. - */ - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat(); - /** - *
-     * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder(); - } - /** - *
-   * A cell definition
-   * Overrides the column and row definition
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.CellDefinition} - */ - public static final class CellDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.CellDefinition) - CellDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CellDefinition.newBuilder() to construct. - private CellDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CellDefinition() { - type_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CellDefinition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CellDefinition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 18: { - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder subBuilder = null; - if (format_ != null) { - subBuilder = format_.toBuilder(); - } - format_ = input.readMessage(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(format_); - format_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.CellDefinitionProto.internal_static_factset_protobuf_stach_v2_table_CellDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.CellDefinitionProto.internal_static_factset_protobuf_stach_v2_table_CellDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.class, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-     * 
- * - * string type = 1; - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-     * 
- * - * string type = 1; - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat format_; - /** - *
-     * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return Whether the format field is set. - */ - @java.lang.Override - public boolean hasFormat() { - return format_ != null; - } - /** - *
-     * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return The format. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat() { - return format_ == null ? com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; - } - /** - *
-     * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder() { - return getFormat(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (format_ != null) { - output.writeMessage(2, getFormat()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (format_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFormat()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition other = (com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition) obj; - - if (!getType() - .equals(other.getType())) return false; - if (hasFormat() != other.hasFormat()) return false; - if (hasFormat()) { - if (!getFormat() - .equals(other.getFormat())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (hasFormat()) { - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A cell definition
-     * Overrides the column and row definition
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.CellDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.CellDefinition) - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.CellDefinitionProto.internal_static_factset_protobuf_stach_v2_table_CellDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.CellDefinitionProto.internal_static_factset_protobuf_stach_v2_table_CellDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.class, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = ""; - - if (formatBuilder_ == null) { - format_ = null; - } else { - format_ = null; - formatBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.CellDefinitionProto.internal_static_factset_protobuf_stach_v2_table_CellDefinition_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition build() { - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition buildPartial() { - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition result = new com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition(this); - result.type_ = type_; - if (formatBuilder_ == null) { - result.format_ = format_; - } else { - result.format_ = formatBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition) { - return mergeFrom((com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition other) { - if (other == com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.hasFormat()) { - mergeFormat(other.getFormat()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object type_ = ""; - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-       * 
- * - * string type = 1; - * @return The type. - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-       * 
- * - * string type = 1; - * @return The bytes for type. - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-       * 
- * - * string type = 1; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-       * 
- * - * string type = 1; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type`
-       * 
- * - * string type = 1; - * @param value The bytes for type to set. - * @return This builder for chaining. - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat format_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder> formatBuilder_; - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return Whether the format field is set. - */ - public boolean hasFormat() { - return formatBuilder_ != null || format_ != null; - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return The format. - */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat() { - if (formatBuilder_ == null) { - return format_ == null ? com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; - } else { - return formatBuilder_.getMessage(); - } - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - public Builder setFormat(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat value) { - if (formatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - format_ = value; - onChanged(); - } else { - formatBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - public Builder setFormat( - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder builderForValue) { - if (formatBuilder_ == null) { - format_ = builderForValue.build(); - onChanged(); - } else { - formatBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - public Builder mergeFormat(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat value) { - if (formatBuilder_ == null) { - if (format_ != null) { - format_ = - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.newBuilder(format_).mergeFrom(value).buildPartial(); - } else { - format_ = value; - } - onChanged(); - } else { - formatBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - public Builder clearFormat() { - if (formatBuilder_ == null) { - format_ = null; - onChanged(); - } else { - format_ = null; - formatBuilder_ = null; - } - - return this; - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder getFormatBuilder() { - - onChanged(); - return getFormatFieldBuilder().getBuilder(); - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder() { - if (formatBuilder_ != null) { - return formatBuilder_.getMessageOrBuilder(); - } else { - return format_ == null ? - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; - } - } - /** - *
-       * The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format`
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder> - getFormatFieldBuilder() { - if (formatBuilder_ == null) { - formatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder>( - getFormat(), - getParentForChildren(), - isClean()); - format_ = null; - } - return formatBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.CellDefinition) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.CellDefinition) - private static final com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition(); - } - - public static com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CellDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CellDefinition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_CellDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_CellDefinition_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0fds/protobuf/stach/v2/table/CellDefini" + - "tion.proto\022\037factset.protobuf.stach.v2.ta" + - "ble\032,fds/protobuf/stach/v2/table/DataFor" + - "mat.proto\"[\n\016CellDefinition\022\014\n\004type\030\001 \001(" + - "\t\022;\n\006format\030\002 \001(\0132+.factset.protobuf.sta" + - "ch.v2.table.DataFormatB\240\001\n#com.factset.p" + - "rotobuf.stach.v2.tableB\023CellDefinitionPr" + - "otoZBgithub.com/factset/stachschema-sdks" + - "/go/fds/protobuf/stach/v2/table\252\002\037FactSe" + - "t.Protobuf.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.DataFormatProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_CellDefinition_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_CellDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_CellDefinition_descriptor, - new java.lang.String[] { "Type", "Format", }); - com.factset.protobuf.stach.v2.table.DataFormatProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/ColumnDataProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/ColumnDataProto.java deleted file mode 100644 index 19b4534..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/ColumnDataProto.java +++ /dev/null @@ -1,1634 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ColumnData.proto - -package com.factset.protobuf.stach.v2.table; - -public final class ColumnDataProto { - private ColumnDataProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ColumnDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.ColumnData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - int getRangesCount(); - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - boolean containsRanges( - int key); - /** - * Use {@link #getRangesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRanges(); - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - java.util.Map - getRangesMap(); - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - - int getRangesOrDefault( - int key, - int defaultValue); - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - - int getRangesOrThrow( - int key); - - /** - *
-     * The values
-     * 
- * - * .google.protobuf.ListValue values = 2; - * @return Whether the values field is set. - */ - boolean hasValues(); - /** - *
-     * The values
-     * 
- * - * .google.protobuf.ListValue values = 2; - * @return The values. - */ - com.google.protobuf.ListValue getValues(); - /** - *
-     * The values
-     * 
- * - * .google.protobuf.ListValue values = 2; - */ - com.google.protobuf.ListValueOrBuilder getValuesOrBuilder(); - - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - java.util.List - getDefinitionsList(); - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getDefinitions(int index); - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - int getDefinitionsCount(); - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - java.util.List - getDefinitionsOrBuilderList(); - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getDefinitionsOrBuilder( - int index); - } - /** - *
-   * An array of column data
-   * The type chosen correlates to the data type of the `ColumnDefinition.type`
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.ColumnData} - */ - public static final class ColumnData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.ColumnData) - ColumnDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ColumnData.newBuilder() to construct. - private ColumnData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ColumnData() { - definitions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ColumnData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ColumnData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ranges_ = com.google.protobuf.MapField.newMapField( - RangesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - ranges__ = input.readMessage( - RangesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - ranges_.getMutableMap().put( - ranges__.getKey(), ranges__.getValue()); - break; - } - case 18: { - com.google.protobuf.ListValue.Builder subBuilder = null; - if (values_ != null) { - subBuilder = values_.toBuilder(); - } - values_ = input.readMessage(com.google.protobuf.ListValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(values_); - values_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - definitions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - definitions_.add( - input.readMessage(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - definitions_ = java.util.Collections.unmodifiableList(definitions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ColumnDataProto.internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRanges(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ColumnDataProto.internal_static_factset_protobuf_stach_v2_table_ColumnData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.class, com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.Builder.class); - } - - public static final int RANGES_FIELD_NUMBER = 1; - private static final class RangesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.ColumnDataProto.internal_static_factset_protobuf_stach_v2_table_ColumnData_RangesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> ranges_; - private com.google.protobuf.MapField - internalGetRanges() { - if (ranges_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RangesDefaultEntryHolder.defaultEntry); - } - return ranges_; - } - - public int getRangesCount() { - return internalGetRanges().getMap().size(); - } - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - - @java.lang.Override - public boolean containsRanges( - int key) { - - return internalGetRanges().getMap().containsKey(key); - } - /** - * Use {@link #getRangesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRanges() { - return getRangesMap(); - } - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - @java.lang.Override - - public java.util.Map getRangesMap() { - return internalGetRanges().getMap(); - } - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - @java.lang.Override - - public int getRangesOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetRanges().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The map (key: uncompressed index, value: length to repeat the value) used during compression
-     * 
- * - * map<int32, int32> ranges = 1; - */ - @java.lang.Override - - public int getRangesOrThrow( - int key) { - - java.util.Map map = - internalGetRanges().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int VALUES_FIELD_NUMBER = 2; - private com.google.protobuf.ListValue values_; - /** - *
-     * The values
-     * 
- * - * .google.protobuf.ListValue values = 2; - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return values_ != null; - } - /** - *
-     * The values
-     * 
- * - * .google.protobuf.ListValue values = 2; - * @return The values. - */ - @java.lang.Override - public com.google.protobuf.ListValue getValues() { - return values_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : values_; - } - /** - *
-     * The values
-     * 
- * - * .google.protobuf.ListValue values = 2; - */ - @java.lang.Override - public com.google.protobuf.ListValueOrBuilder getValuesOrBuilder() { - return getValues(); - } - - public static final int DEFINITIONS_FIELD_NUMBER = 3; - private java.util.List definitions_; - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - @java.lang.Override - public java.util.List getDefinitionsList() { - return definitions_; - } - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - @java.lang.Override - public java.util.List - getDefinitionsOrBuilderList() { - return definitions_; - } - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - @java.lang.Override - public int getDefinitionsCount() { - return definitions_.size(); - } - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getDefinitions(int index) { - return definitions_.get(index); - } - /** - *
-     * The cell definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getDefinitionsOrBuilder( - int index) { - return definitions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetRanges(), - RangesDefaultEntryHolder.defaultEntry, - 1); - if (values_ != null) { - output.writeMessage(2, getValues()); - } - for (int i = 0; i < definitions_.size(); i++) { - output.writeMessage(3, definitions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetRanges().getMap().entrySet()) { - com.google.protobuf.MapEntry - ranges__ = RangesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, ranges__); - } - if (values_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValues()); - } - for (int i = 0; i < definitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, definitions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData other = (com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData) obj; - - if (!internalGetRanges().equals( - other.internalGetRanges())) return false; - if (hasValues() != other.hasValues()) return false; - if (hasValues()) { - if (!getValues() - .equals(other.getValues())) return false; - } - if (!getDefinitionsList() - .equals(other.getDefinitionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetRanges().getMap().isEmpty()) { - hash = (37 * hash) + RANGES_FIELD_NUMBER; - hash = (53 * hash) + internalGetRanges().hashCode(); - } - if (hasValues()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - } - if (getDefinitionsCount() > 0) { - hash = (37 * hash) + DEFINITIONS_FIELD_NUMBER; - hash = (53 * hash) + getDefinitionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An array of column data
-     * The type chosen correlates to the data type of the `ColumnDefinition.type`
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.ColumnData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.ColumnData) - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ColumnDataProto.internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRanges(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableRanges(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ColumnDataProto.internal_static_factset_protobuf_stach_v2_table_ColumnData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.class, com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDefinitionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableRanges().clear(); - if (valuesBuilder_ == null) { - values_ = null; - } else { - values_ = null; - valuesBuilder_ = null; - } - if (definitionsBuilder_ == null) { - definitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - definitionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.ColumnDataProto.internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData build() { - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData buildPartial() { - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData result = new com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData(this); - int from_bitField0_ = bitField0_; - result.ranges_ = internalGetRanges(); - result.ranges_.makeImmutable(); - if (valuesBuilder_ == null) { - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - if (definitionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - definitions_ = java.util.Collections.unmodifiableList(definitions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.definitions_ = definitions_; - } else { - result.definitions_ = definitionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData) { - return mergeFrom((com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData other) { - if (other == com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.getDefaultInstance()) return this; - internalGetMutableRanges().mergeFrom( - other.internalGetRanges()); - if (other.hasValues()) { - mergeValues(other.getValues()); - } - if (definitionsBuilder_ == null) { - if (!other.definitions_.isEmpty()) { - if (definitions_.isEmpty()) { - definitions_ = other.definitions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDefinitionsIsMutable(); - definitions_.addAll(other.definitions_); - } - onChanged(); - } - } else { - if (!other.definitions_.isEmpty()) { - if (definitionsBuilder_.isEmpty()) { - definitionsBuilder_.dispose(); - definitionsBuilder_ = null; - definitions_ = other.definitions_; - bitField0_ = (bitField0_ & ~0x00000002); - definitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDefinitionsFieldBuilder() : null; - } else { - definitionsBuilder_.addAllMessages(other.definitions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> ranges_; - private com.google.protobuf.MapField - internalGetRanges() { - if (ranges_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RangesDefaultEntryHolder.defaultEntry); - } - return ranges_; - } - private com.google.protobuf.MapField - internalGetMutableRanges() { - onChanged();; - if (ranges_ == null) { - ranges_ = com.google.protobuf.MapField.newMapField( - RangesDefaultEntryHolder.defaultEntry); - } - if (!ranges_.isMutable()) { - ranges_ = ranges_.copy(); - } - return ranges_; - } - - public int getRangesCount() { - return internalGetRanges().getMap().size(); - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - - @java.lang.Override - public boolean containsRanges( - int key) { - - return internalGetRanges().getMap().containsKey(key); - } - /** - * Use {@link #getRangesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRanges() { - return getRangesMap(); - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - @java.lang.Override - - public java.util.Map getRangesMap() { - return internalGetRanges().getMap(); - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - @java.lang.Override - - public int getRangesOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetRanges().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - @java.lang.Override - - public int getRangesOrThrow( - int key) { - - java.util.Map map = - internalGetRanges().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRanges() { - internalGetMutableRanges().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - - public Builder removeRanges( - int key) { - - internalGetMutableRanges().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRanges() { - return internalGetMutableRanges().getMutableMap(); - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - public Builder putRanges( - int key, - int value) { - - - internalGetMutableRanges().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The map (key: uncompressed index, value: length to repeat the value) used during compression
-       * 
- * - * map<int32, int32> ranges = 1; - */ - - public Builder putAllRanges( - java.util.Map values) { - internalGetMutableRanges().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.ListValue values_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> valuesBuilder_; - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - * @return Whether the values field is set. - */ - public boolean hasValues() { - return valuesBuilder_ != null || values_ != null; - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - * @return The values. - */ - public com.google.protobuf.ListValue getValues() { - if (valuesBuilder_ == null) { - return values_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : values_; - } else { - return valuesBuilder_.getMessage(); - } - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - public Builder setValues(com.google.protobuf.ListValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - values_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - public Builder setValues( - com.google.protobuf.ListValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - values_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - public Builder mergeValues(com.google.protobuf.ListValue value) { - if (valuesBuilder_ == null) { - if (values_ != null) { - values_ = - com.google.protobuf.ListValue.newBuilder(values_).mergeFrom(value).buildPartial(); - } else { - values_ = value; - } - onChanged(); - } else { - valuesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = null; - onChanged(); - } else { - values_ = null; - valuesBuilder_ = null; - } - - return this; - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - public com.google.protobuf.ListValue.Builder getValuesBuilder() { - - onChanged(); - return getValuesFieldBuilder().getBuilder(); - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - public com.google.protobuf.ListValueOrBuilder getValuesOrBuilder() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - return values_ == null ? - com.google.protobuf.ListValue.getDefaultInstance() : values_; - } - } - /** - *
-       * The values
-       * 
- * - * .google.protobuf.ListValue values = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - getValues(), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - - private java.util.List definitions_ = - java.util.Collections.emptyList(); - private void ensureDefinitionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - definitions_ = new java.util.ArrayList(definitions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder> definitionsBuilder_; - - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public java.util.List getDefinitionsList() { - if (definitionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(definitions_); - } else { - return definitionsBuilder_.getMessageList(); - } - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public int getDefinitionsCount() { - if (definitionsBuilder_ == null) { - return definitions_.size(); - } else { - return definitionsBuilder_.getCount(); - } - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition getDefinitions(int index) { - if (definitionsBuilder_ == null) { - return definitions_.get(index); - } else { - return definitionsBuilder_.getMessage(index); - } - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder setDefinitions( - int index, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (definitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefinitionsIsMutable(); - definitions_.set(index, value); - onChanged(); - } else { - definitionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder setDefinitions( - int index, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder builderForValue) { - if (definitionsBuilder_ == null) { - ensureDefinitionsIsMutable(); - definitions_.set(index, builderForValue.build()); - onChanged(); - } else { - definitionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder addDefinitions(com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (definitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefinitionsIsMutable(); - definitions_.add(value); - onChanged(); - } else { - definitionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder addDefinitions( - int index, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition value) { - if (definitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefinitionsIsMutable(); - definitions_.add(index, value); - onChanged(); - } else { - definitionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder addDefinitions( - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder builderForValue) { - if (definitionsBuilder_ == null) { - ensureDefinitionsIsMutable(); - definitions_.add(builderForValue.build()); - onChanged(); - } else { - definitionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder addDefinitions( - int index, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder builderForValue) { - if (definitionsBuilder_ == null) { - ensureDefinitionsIsMutable(); - definitions_.add(index, builderForValue.build()); - onChanged(); - } else { - definitionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder addAllDefinitions( - java.lang.Iterable values) { - if (definitionsBuilder_ == null) { - ensureDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, definitions_); - onChanged(); - } else { - definitionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder clearDefinitions() { - if (definitionsBuilder_ == null) { - definitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - definitionsBuilder_.clear(); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public Builder removeDefinitions(int index) { - if (definitionsBuilder_ == null) { - ensureDefinitionsIsMutable(); - definitions_.remove(index); - onChanged(); - } else { - definitionsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder getDefinitionsBuilder( - int index) { - return getDefinitionsFieldBuilder().getBuilder(index); - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder getDefinitionsOrBuilder( - int index) { - if (definitionsBuilder_ == null) { - return definitions_.get(index); } else { - return definitionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public java.util.List - getDefinitionsOrBuilderList() { - if (definitionsBuilder_ != null) { - return definitionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(definitions_); - } - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder addDefinitionsBuilder() { - return getDefinitionsFieldBuilder().addBuilder( - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance()); - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder addDefinitionsBuilder( - int index) { - return getDefinitionsFieldBuilder().addBuilder( - index, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.getDefaultInstance()); - } - /** - *
-       * The cell definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.CellDefinition definitions = 3; - */ - public java.util.List - getDefinitionsBuilderList() { - return getDefinitionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder> - getDefinitionsFieldBuilder() { - if (definitionsBuilder_ == null) { - definitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinition.Builder, com.factset.protobuf.stach.v2.table.CellDefinitionProto.CellDefinitionOrBuilder>( - definitions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - definitions_ = null; - } - return definitionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.ColumnData) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.ColumnData) - private static final com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData(); - } - - public static com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColumnData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_ColumnData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_ColumnData_RangesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_ColumnData_RangesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,fds/protobuf/stach/v2/table/ColumnData" + - ".proto\022\037factset.protobuf.stach.v2.table\032" + - "0fds/protobuf/stach/v2/table/CellDefinit" + - "ion.proto\032\034google/protobuf/struct.proto\"" + - "\366\001\n\nColumnData\022G\n\006ranges\030\001 \003(\01327.factset" + - ".protobuf.stach.v2.table.ColumnData.Rang" + - "esEntry\022*\n\006values\030\002 \001(\0132\032.google.protobu" + - "f.ListValue\022D\n\013definitions\030\003 \003(\0132/.facts" + - "et.protobuf.stach.v2.table.CellDefinitio" + - "n\032-\n\013RangesEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002" + - " \001(\005:\0028\001B\234\001\n#com.factset.protobuf.stach." + - "v2.tableB\017ColumnDataProtoZBgithub.com/fa" + - "ctset/stachschema-sdks/go/fds/protobuf/s" + - "tach/v2/table\252\002\037FactSet.Protobuf.Stach.V" + - "2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.CellDefinitionProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_ColumnData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor, - new java.lang.String[] { "Ranges", "Values", "Definitions", }); - internal_static_factset_protobuf_stach_v2_table_ColumnData_RangesEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_ColumnData_descriptor.getNestedTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_ColumnData_RangesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_ColumnData_RangesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.factset.protobuf.stach.v2.table.CellDefinitionProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/ColumnDefinitionProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/ColumnDefinitionProto.java deleted file mode 100644 index 8d4b1b2..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/ColumnDefinitionProto.java +++ /dev/null @@ -1,2234 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ColumnDefinition.proto - -package com.factset.protobuf.stach.v2.table; - -public final class ColumnDefinitionProto { - private ColumnDefinitionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ColumnDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.ColumnDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The id; used for referring to a column internal to a package
-     * 
- * - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The id; used for referring to a column internal to a package
-     * 
- * - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The name; used for referring to a column external to a package
-     * 
- * - * string name = 2; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The name; used for referring to a column external to a package
-     * 
- * - * string name = 2; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The description; used for rendering human readable headers
-     * 
- * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-     * The description; used for rendering human readable headers
-     * 
- * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`
-     * 
- * - * string type = 4; - * @return The type. - */ - java.lang.String getType(); - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`
-     * 
- * - * string type = 4; - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * Whether this column is a dimension or not
-     * 
- * - * bool is_dimension = 5; - * @return The isDimension. - */ - boolean getIsDimension(); - - /** - *
-     * Whether this column is hidden or not
-     * 
- * - * bool is_hidden = 6; - * @return The isHidden. - */ - boolean getIsHidden(); - - /** - *
-     * The next sibling column in the collapsed column tree
-     * 
- * - * string next_sibling_id = 7; - * @return The nextSiblingId. - */ - java.lang.String getNextSiblingId(); - /** - *
-     * The next sibling column in the collapsed column tree
-     * 
- * - * string next_sibling_id = 7; - * @return The bytes for nextSiblingId. - */ - com.google.protobuf.ByteString - getNextSiblingIdBytes(); - - /** - *
-     * The parent column in the collapsed column tree
-     * 
- * - * string parent_id = 8; - * @return The parentId. - */ - java.lang.String getParentId(); - /** - *
-     * The parent column in the collapsed column tree
-     * 
- * - * string parent_id = 8; - * @return The bytes for parentId. - */ - com.google.protobuf.ByteString - getParentIdBytes(); - - /** - *
-     * The header id
-     * 
- * - * string header_id = 9; - * @return The headerId. - */ - java.lang.String getHeaderId(); - /** - *
-     * The header id
-     * 
- * - * string header_id = 9; - * @return The bytes for headerId. - */ - com.google.protobuf.ByteString - getHeaderIdBytes(); - - /** - *
-     * The data format
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - * @return Whether the format field is set. - */ - boolean hasFormat(); - /** - *
-     * The data format
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - * @return The format. - */ - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat(); - /** - *
-     * The data format
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder(); - } - /** - *
-   * A definition of a column
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.ColumnDefinition} - */ - public static final class ColumnDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.ColumnDefinition) - ColumnDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ColumnDefinition.newBuilder() to construct. - private ColumnDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ColumnDefinition() { - id_ = ""; - name_ = ""; - description_ = ""; - type_ = ""; - nextSiblingId_ = ""; - parentId_ = ""; - headerId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ColumnDefinition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ColumnDefinition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 40: { - - isDimension_ = input.readBool(); - break; - } - case 48: { - - isHidden_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - nextSiblingId_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - parentId_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - headerId_ = s; - break; - } - case 82: { - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder subBuilder = null; - if (format_ != null) { - subBuilder = format_.toBuilder(); - } - format_ = input.readMessage(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(format_); - format_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.class, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * The id; used for referring to a column internal to a package
-     * 
- * - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The id; used for referring to a column internal to a package
-     * 
- * - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * The name; used for referring to a column external to a package
-     * 
- * - * string name = 2; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name; used for referring to a column external to a package
-     * 
- * - * string name = 2; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
-     * The description; used for rendering human readable headers
-     * 
- * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * The description; used for rendering human readable headers
-     * 
- * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object type_; - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`
-     * 
- * - * string type = 4; - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - *
-     * The data type; correlates with the chosen property for `ColumnData.data`
-     * 
- * - * string type = 4; - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_DIMENSION_FIELD_NUMBER = 5; - private boolean isDimension_; - /** - *
-     * Whether this column is a dimension or not
-     * 
- * - * bool is_dimension = 5; - * @return The isDimension. - */ - @java.lang.Override - public boolean getIsDimension() { - return isDimension_; - } - - public static final int IS_HIDDEN_FIELD_NUMBER = 6; - private boolean isHidden_; - /** - *
-     * Whether this column is hidden or not
-     * 
- * - * bool is_hidden = 6; - * @return The isHidden. - */ - @java.lang.Override - public boolean getIsHidden() { - return isHidden_; - } - - public static final int NEXT_SIBLING_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object nextSiblingId_; - /** - *
-     * The next sibling column in the collapsed column tree
-     * 
- * - * string next_sibling_id = 7; - * @return The nextSiblingId. - */ - @java.lang.Override - public java.lang.String getNextSiblingId() { - java.lang.Object ref = nextSiblingId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextSiblingId_ = s; - return s; - } - } - /** - *
-     * The next sibling column in the collapsed column tree
-     * 
- * - * string next_sibling_id = 7; - * @return The bytes for nextSiblingId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextSiblingIdBytes() { - java.lang.Object ref = nextSiblingId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextSiblingId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_ID_FIELD_NUMBER = 8; - private volatile java.lang.Object parentId_; - /** - *
-     * The parent column in the collapsed column tree
-     * 
- * - * string parent_id = 8; - * @return The parentId. - */ - @java.lang.Override - public java.lang.String getParentId() { - java.lang.Object ref = parentId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentId_ = s; - return s; - } - } - /** - *
-     * The parent column in the collapsed column tree
-     * 
- * - * string parent_id = 8; - * @return The bytes for parentId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentIdBytes() { - java.lang.Object ref = parentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADER_ID_FIELD_NUMBER = 9; - private volatile java.lang.Object headerId_; - /** - *
-     * The header id
-     * 
- * - * string header_id = 9; - * @return The headerId. - */ - @java.lang.Override - public java.lang.String getHeaderId() { - java.lang.Object ref = headerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - headerId_ = s; - return s; - } - } - /** - *
-     * The header id
-     * 
- * - * string header_id = 9; - * @return The bytes for headerId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHeaderIdBytes() { - java.lang.Object ref = headerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 10; - private com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat format_; - /** - *
-     * The data format
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - * @return Whether the format field is set. - */ - @java.lang.Override - public boolean hasFormat() { - return format_ != null; - } - /** - *
-     * The data format
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - * @return The format. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat() { - return format_ == null ? com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; - } - /** - *
-     * The data format
-     * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder() { - return getFormat(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); - } - if (isDimension_ != false) { - output.writeBool(5, isDimension_); - } - if (isHidden_ != false) { - output.writeBool(6, isHidden_); - } - if (!getNextSiblingIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, nextSiblingId_); - } - if (!getParentIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parentId_); - } - if (!getHeaderIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, headerId_); - } - if (format_ != null) { - output.writeMessage(10, getFormat()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); - } - if (isDimension_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isDimension_); - } - if (isHidden_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isHidden_); - } - if (!getNextSiblingIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, nextSiblingId_); - } - if (!getParentIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parentId_); - } - if (!getHeaderIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, headerId_); - } - if (format_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getFormat()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition other = (com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getType() - .equals(other.getType())) return false; - if (getIsDimension() - != other.getIsDimension()) return false; - if (getIsHidden() - != other.getIsHidden()) return false; - if (!getNextSiblingId() - .equals(other.getNextSiblingId())) return false; - if (!getParentId() - .equals(other.getParentId())) return false; - if (!getHeaderId() - .equals(other.getHeaderId())) return false; - if (hasFormat() != other.hasFormat()) return false; - if (hasFormat()) { - if (!getFormat() - .equals(other.getFormat())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + IS_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDimension()); - hash = (37 * hash) + IS_HIDDEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsHidden()); - hash = (37 * hash) + NEXT_SIBLING_ID_FIELD_NUMBER; - hash = (53 * hash) + getNextSiblingId().hashCode(); - hash = (37 * hash) + PARENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentId().hashCode(); - hash = (37 * hash) + HEADER_ID_FIELD_NUMBER; - hash = (53 * hash) + getHeaderId().hashCode(); - if (hasFormat()) { - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A definition of a column
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.ColumnDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.ColumnDefinition) - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.class, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - description_ = ""; - - type_ = ""; - - isDimension_ = false; - - isHidden_ = false; - - nextSiblingId_ = ""; - - parentId_ = ""; - - headerId_ = ""; - - if (formatBuilder_ == null) { - format_ = null; - } else { - format_ = null; - formatBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition build() { - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition buildPartial() { - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition result = new com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition(this); - result.id_ = id_; - result.name_ = name_; - result.description_ = description_; - result.type_ = type_; - result.isDimension_ = isDimension_; - result.isHidden_ = isHidden_; - result.nextSiblingId_ = nextSiblingId_; - result.parentId_ = parentId_; - result.headerId_ = headerId_; - if (formatBuilder_ == null) { - result.format_ = format_; - } else { - result.format_ = formatBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition) { - return mergeFrom((com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition other) { - if (other == com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.getIsDimension() != false) { - setIsDimension(other.getIsDimension()); - } - if (other.getIsHidden() != false) { - setIsHidden(other.getIsHidden()); - } - if (!other.getNextSiblingId().isEmpty()) { - nextSiblingId_ = other.nextSiblingId_; - onChanged(); - } - if (!other.getParentId().isEmpty()) { - parentId_ = other.parentId_; - onChanged(); - } - if (!other.getHeaderId().isEmpty()) { - headerId_ = other.headerId_; - onChanged(); - } - if (other.hasFormat()) { - mergeFormat(other.getFormat()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * The id; used for referring to a column internal to a package
-       * 
- * - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The id; used for referring to a column internal to a package
-       * 
- * - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The id; used for referring to a column internal to a package
-       * 
- * - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * The id; used for referring to a column internal to a package
-       * 
- * - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * The id; used for referring to a column internal to a package
-       * 
- * - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * The name; used for referring to a column external to a package
-       * 
- * - * string name = 2; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name; used for referring to a column external to a package
-       * 
- * - * string name = 2; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name; used for referring to a column external to a package
-       * 
- * - * string name = 2; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * The name; used for referring to a column external to a package
-       * 
- * - * string name = 2; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * The name; used for referring to a column external to a package
-       * 
- * - * string name = 2; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * The description; used for rendering human readable headers
-       * 
- * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The description; used for rendering human readable headers
-       * 
- * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The description; used for rendering human readable headers
-       * 
- * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * The description; used for rendering human readable headers
-       * 
- * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * The description; used for rendering human readable headers
-       * 
- * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`
-       * 
- * - * string type = 4; - * @return The type. - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`
-       * 
- * - * string type = 4; - * @return The bytes for type. - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`
-       * 
- * - * string type = 4; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`
-       * 
- * - * string type = 4; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * The data type; correlates with the chosen property for `ColumnData.data`
-       * 
- * - * string type = 4; - * @param value The bytes for type to set. - * @return This builder for chaining. - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private boolean isDimension_ ; - /** - *
-       * Whether this column is a dimension or not
-       * 
- * - * bool is_dimension = 5; - * @return The isDimension. - */ - @java.lang.Override - public boolean getIsDimension() { - return isDimension_; - } - /** - *
-       * Whether this column is a dimension or not
-       * 
- * - * bool is_dimension = 5; - * @param value The isDimension to set. - * @return This builder for chaining. - */ - public Builder setIsDimension(boolean value) { - - isDimension_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this column is a dimension or not
-       * 
- * - * bool is_dimension = 5; - * @return This builder for chaining. - */ - public Builder clearIsDimension() { - - isDimension_ = false; - onChanged(); - return this; - } - - private boolean isHidden_ ; - /** - *
-       * Whether this column is hidden or not
-       * 
- * - * bool is_hidden = 6; - * @return The isHidden. - */ - @java.lang.Override - public boolean getIsHidden() { - return isHidden_; - } - /** - *
-       * Whether this column is hidden or not
-       * 
- * - * bool is_hidden = 6; - * @param value The isHidden to set. - * @return This builder for chaining. - */ - public Builder setIsHidden(boolean value) { - - isHidden_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this column is hidden or not
-       * 
- * - * bool is_hidden = 6; - * @return This builder for chaining. - */ - public Builder clearIsHidden() { - - isHidden_ = false; - onChanged(); - return this; - } - - private java.lang.Object nextSiblingId_ = ""; - /** - *
-       * The next sibling column in the collapsed column tree
-       * 
- * - * string next_sibling_id = 7; - * @return The nextSiblingId. - */ - public java.lang.String getNextSiblingId() { - java.lang.Object ref = nextSiblingId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextSiblingId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The next sibling column in the collapsed column tree
-       * 
- * - * string next_sibling_id = 7; - * @return The bytes for nextSiblingId. - */ - public com.google.protobuf.ByteString - getNextSiblingIdBytes() { - java.lang.Object ref = nextSiblingId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextSiblingId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The next sibling column in the collapsed column tree
-       * 
- * - * string next_sibling_id = 7; - * @param value The nextSiblingId to set. - * @return This builder for chaining. - */ - public Builder setNextSiblingId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextSiblingId_ = value; - onChanged(); - return this; - } - /** - *
-       * The next sibling column in the collapsed column tree
-       * 
- * - * string next_sibling_id = 7; - * @return This builder for chaining. - */ - public Builder clearNextSiblingId() { - - nextSiblingId_ = getDefaultInstance().getNextSiblingId(); - onChanged(); - return this; - } - /** - *
-       * The next sibling column in the collapsed column tree
-       * 
- * - * string next_sibling_id = 7; - * @param value The bytes for nextSiblingId to set. - * @return This builder for chaining. - */ - public Builder setNextSiblingIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextSiblingId_ = value; - onChanged(); - return this; - } - - private java.lang.Object parentId_ = ""; - /** - *
-       * The parent column in the collapsed column tree
-       * 
- * - * string parent_id = 8; - * @return The parentId. - */ - public java.lang.String getParentId() { - java.lang.Object ref = parentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The parent column in the collapsed column tree
-       * 
- * - * string parent_id = 8; - * @return The bytes for parentId. - */ - public com.google.protobuf.ByteString - getParentIdBytes() { - java.lang.Object ref = parentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The parent column in the collapsed column tree
-       * 
- * - * string parent_id = 8; - * @param value The parentId to set. - * @return This builder for chaining. - */ - public Builder setParentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parentId_ = value; - onChanged(); - return this; - } - /** - *
-       * The parent column in the collapsed column tree
-       * 
- * - * string parent_id = 8; - * @return This builder for chaining. - */ - public Builder clearParentId() { - - parentId_ = getDefaultInstance().getParentId(); - onChanged(); - return this; - } - /** - *
-       * The parent column in the collapsed column tree
-       * 
- * - * string parent_id = 8; - * @param value The bytes for parentId to set. - * @return This builder for chaining. - */ - public Builder setParentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parentId_ = value; - onChanged(); - return this; - } - - private java.lang.Object headerId_ = ""; - /** - *
-       * The header id
-       * 
- * - * string header_id = 9; - * @return The headerId. - */ - public java.lang.String getHeaderId() { - java.lang.Object ref = headerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - headerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The header id
-       * 
- * - * string header_id = 9; - * @return The bytes for headerId. - */ - public com.google.protobuf.ByteString - getHeaderIdBytes() { - java.lang.Object ref = headerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The header id
-       * 
- * - * string header_id = 9; - * @param value The headerId to set. - * @return This builder for chaining. - */ - public Builder setHeaderId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - headerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The header id
-       * 
- * - * string header_id = 9; - * @return This builder for chaining. - */ - public Builder clearHeaderId() { - - headerId_ = getDefaultInstance().getHeaderId(); - onChanged(); - return this; - } - /** - *
-       * The header id
-       * 
- * - * string header_id = 9; - * @param value The bytes for headerId to set. - * @return This builder for chaining. - */ - public Builder setHeaderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - headerId_ = value; - onChanged(); - return this; - } - - private com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat format_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder> formatBuilder_; - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - * @return Whether the format field is set. - */ - public boolean hasFormat() { - return formatBuilder_ != null || format_ != null; - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - * @return The format. - */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat() { - if (formatBuilder_ == null) { - return format_ == null ? com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; - } else { - return formatBuilder_.getMessage(); - } - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - public Builder setFormat(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat value) { - if (formatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - format_ = value; - onChanged(); - } else { - formatBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - public Builder setFormat( - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder builderForValue) { - if (formatBuilder_ == null) { - format_ = builderForValue.build(); - onChanged(); - } else { - formatBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - public Builder mergeFormat(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat value) { - if (formatBuilder_ == null) { - if (format_ != null) { - format_ = - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.newBuilder(format_).mergeFrom(value).buildPartial(); - } else { - format_ = value; - } - onChanged(); - } else { - formatBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - public Builder clearFormat() { - if (formatBuilder_ == null) { - format_ = null; - onChanged(); - } else { - format_ = null; - formatBuilder_ = null; - } - - return this; - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder getFormatBuilder() { - - onChanged(); - return getFormatFieldBuilder().getBuilder(); - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder() { - if (formatBuilder_ != null) { - return formatBuilder_.getMessageOrBuilder(); - } else { - return format_ == null ? - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; - } - } - /** - *
-       * The data format
-       * 
- * - * .factset.protobuf.stach.v2.table.DataFormat format = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder> - getFormatFieldBuilder() { - if (formatBuilder_ == null) { - formatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder>( - getFormat(), - getParentForChildren(), - isClean()); - format_ = null; - } - return formatBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.ColumnDefinition) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.ColumnDefinition) - private static final com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition(); - } - - public static com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColumnDefinition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2fds/protobuf/stach/v2/table/ColumnDefi" + - "nition.proto\022\037factset.protobuf.stach.v2." + - "table\032,fds/protobuf/stach/v2/table/DataF" + - "ormat.proto\"\364\001\n\020ColumnDefinition\022\n\n\002id\030\001" + - " \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + - "\014\n\004type\030\004 \001(\t\022\024\n\014is_dimension\030\005 \001(\010\022\021\n\ti" + - "s_hidden\030\006 \001(\010\022\027\n\017next_sibling_id\030\007 \001(\t\022" + - "\021\n\tparent_id\030\010 \001(\t\022\021\n\theader_id\030\t \001(\t\022;\n" + - "\006format\030\n \001(\0132+.factset.protobuf.stach.v" + - "2.table.DataFormatB\242\001\n#com.factset.proto" + - "buf.stach.v2.tableB\025ColumnDefinitionProt" + - "oZBgithub.com/factset/stachschema-sdks/g" + - "o/fds/protobuf/stach/v2/table\252\002\037FactSet." + - "Protobuf.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.DataFormatProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_ColumnDefinition_descriptor, - new java.lang.String[] { "Id", "Name", "Description", "Type", "IsDimension", "IsHidden", "NextSiblingId", "ParentId", "HeaderId", "Format", }); - com.factset.protobuf.stach.v2.table.DataFormatProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/DataFormatProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/DataFormatProto.java deleted file mode 100644 index d187645..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/DataFormatProto.java +++ /dev/null @@ -1,1147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/DataFormat.proto - -package com.factset.protobuf.stach.v2.table; - -public final class DataFormatProto { - private DataFormatProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DataFormatOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.DataFormat) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The format
-     * 
- * - * string format = 1; - * @return The format. - */ - java.lang.String getFormat(); - /** - *
-     * The format
-     * 
- * - * string format = 1; - * @return The bytes for format. - */ - com.google.protobuf.ByteString - getFormatBytes(); - - /** - *
-     * The null format
-     * 
- * - * string null_format = 2; - * @return The nullFormat. - */ - java.lang.String getNullFormat(); - /** - *
-     * The null format
-     * 
- * - * string null_format = 2; - * @return The bytes for nullFormat. - */ - com.google.protobuf.ByteString - getNullFormatBytes(); - - /** - *
-     * The horizontal alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return The enum numeric value on the wire for halign. - */ - int getHalignValue(); - /** - *
-     * The horizontal alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return The halign. - */ - com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment getHalign(); - - /** - *
-     * The vertical alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return The enum numeric value on the wire for valign. - */ - int getValignValue(); - /** - *
-     * The vertical alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return The valign. - */ - com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment getValign(); - } - /** - *
-   * A data format
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.DataFormat} - */ - public static final class DataFormat extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.DataFormat) - DataFormatOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataFormat.newBuilder() to construct. - private DataFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataFormat() { - format_ = ""; - nullFormat_ = ""; - halign_ = 0; - valign_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataFormat(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DataFormat( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - format_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nullFormat_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - halign_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - valign_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.DataFormatProto.internal_static_factset_protobuf_stach_v2_table_DataFormat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.DataFormatProto.internal_static_factset_protobuf_stach_v2_table_DataFormat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.class, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder.class); - } - - public static final int FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object format_; - /** - *
-     * The format
-     * 
- * - * string format = 1; - * @return The format. - */ - @java.lang.Override - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } - } - /** - *
-     * The format
-     * 
- * - * string format = 1; - * @return The bytes for format. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NULL_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object nullFormat_; - /** - *
-     * The null format
-     * 
- * - * string null_format = 2; - * @return The nullFormat. - */ - @java.lang.Override - public java.lang.String getNullFormat() { - java.lang.Object ref = nullFormat_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nullFormat_ = s; - return s; - } - } - /** - *
-     * The null format
-     * 
- * - * string null_format = 2; - * @return The bytes for nullFormat. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNullFormatBytes() { - java.lang.Object ref = nullFormat_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nullFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HALIGN_FIELD_NUMBER = 3; - private int halign_; - /** - *
-     * The horizontal alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return The enum numeric value on the wire for halign. - */ - @java.lang.Override public int getHalignValue() { - return halign_; - } - /** - *
-     * The horizontal alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return The halign. - */ - @java.lang.Override public com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment getHalign() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment result = com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment.valueOf(halign_); - return result == null ? com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment.UNRECOGNIZED : result; - } - - public static final int VALIGN_FIELD_NUMBER = 4; - private int valign_; - /** - *
-     * The vertical alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return The enum numeric value on the wire for valign. - */ - @java.lang.Override public int getValignValue() { - return valign_; - } - /** - *
-     * The vertical alignment
-     * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return The valign. - */ - @java.lang.Override public com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment getValign() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment result = com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment.valueOf(valign_); - return result == null ? com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); - } - if (!getNullFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nullFormat_); - } - if (halign_ != com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment.UNKNOWN_HALIGN.getNumber()) { - output.writeEnum(3, halign_); - } - if (valign_ != com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment.UNKNOWN_VALIGN.getNumber()) { - output.writeEnum(4, valign_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); - } - if (!getNullFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nullFormat_); - } - if (halign_ != com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment.UNKNOWN_HALIGN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, halign_); - } - if (valign_ != com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment.UNKNOWN_VALIGN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, valign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat other = (com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat) obj; - - if (!getFormat() - .equals(other.getFormat())) return false; - if (!getNullFormat() - .equals(other.getNullFormat())) return false; - if (halign_ != other.halign_) return false; - if (valign_ != other.valign_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - hash = (37 * hash) + NULL_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getNullFormat().hashCode(); - hash = (37 * hash) + HALIGN_FIELD_NUMBER; - hash = (53 * hash) + halign_; - hash = (37 * hash) + VALIGN_FIELD_NUMBER; - hash = (53 * hash) + valign_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A data format
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.DataFormat} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.DataFormat) - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.DataFormatProto.internal_static_factset_protobuf_stach_v2_table_DataFormat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.DataFormatProto.internal_static_factset_protobuf_stach_v2_table_DataFormat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.class, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - format_ = ""; - - nullFormat_ = ""; - - halign_ = 0; - - valign_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.DataFormatProto.internal_static_factset_protobuf_stach_v2_table_DataFormat_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat build() { - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat buildPartial() { - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat result = new com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat(this); - result.format_ = format_; - result.nullFormat_ = nullFormat_; - result.halign_ = halign_; - result.valign_ = valign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat) { - return mergeFrom((com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat other) { - if (other == com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance()) return this; - if (!other.getFormat().isEmpty()) { - format_ = other.format_; - onChanged(); - } - if (!other.getNullFormat().isEmpty()) { - nullFormat_ = other.nullFormat_; - onChanged(); - } - if (other.halign_ != 0) { - setHalignValue(other.getHalignValue()); - } - if (other.valign_ != 0) { - setValignValue(other.getValignValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object format_ = ""; - /** - *
-       * The format
-       * 
- * - * string format = 1; - * @return The format. - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The format
-       * 
- * - * string format = 1; - * @return The bytes for format. - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The format
-       * 
- * - * string format = 1; - * @param value The format to set. - * @return This builder for chaining. - */ - public Builder setFormat( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value; - onChanged(); - return this; - } - /** - *
-       * The format
-       * 
- * - * string format = 1; - * @return This builder for chaining. - */ - public Builder clearFormat() { - - format_ = getDefaultInstance().getFormat(); - onChanged(); - return this; - } - /** - *
-       * The format
-       * 
- * - * string format = 1; - * @param value The bytes for format to set. - * @return This builder for chaining. - */ - public Builder setFormatBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - format_ = value; - onChanged(); - return this; - } - - private java.lang.Object nullFormat_ = ""; - /** - *
-       * The null format
-       * 
- * - * string null_format = 2; - * @return The nullFormat. - */ - public java.lang.String getNullFormat() { - java.lang.Object ref = nullFormat_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nullFormat_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The null format
-       * 
- * - * string null_format = 2; - * @return The bytes for nullFormat. - */ - public com.google.protobuf.ByteString - getNullFormatBytes() { - java.lang.Object ref = nullFormat_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nullFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The null format
-       * 
- * - * string null_format = 2; - * @param value The nullFormat to set. - * @return This builder for chaining. - */ - public Builder setNullFormat( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nullFormat_ = value; - onChanged(); - return this; - } - /** - *
-       * The null format
-       * 
- * - * string null_format = 2; - * @return This builder for chaining. - */ - public Builder clearNullFormat() { - - nullFormat_ = getDefaultInstance().getNullFormat(); - onChanged(); - return this; - } - /** - *
-       * The null format
-       * 
- * - * string null_format = 2; - * @param value The bytes for nullFormat to set. - * @return This builder for chaining. - */ - public Builder setNullFormatBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nullFormat_ = value; - onChanged(); - return this; - } - - private int halign_ = 0; - /** - *
-       * The horizontal alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return The enum numeric value on the wire for halign. - */ - @java.lang.Override public int getHalignValue() { - return halign_; - } - /** - *
-       * The horizontal alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @param value The enum numeric value on the wire for halign to set. - * @return This builder for chaining. - */ - public Builder setHalignValue(int value) { - - halign_ = value; - onChanged(); - return this; - } - /** - *
-       * The horizontal alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return The halign. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment getHalign() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment result = com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment.valueOf(halign_); - return result == null ? com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment.UNRECOGNIZED : result; - } - /** - *
-       * The horizontal alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @param value The halign to set. - * @return This builder for chaining. - */ - public Builder setHalign(com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.HorizontalAlignment value) { - if (value == null) { - throw new NullPointerException(); - } - - halign_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The horizontal alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.HorizontalAlignment halign = 3; - * @return This builder for chaining. - */ - public Builder clearHalign() { - - halign_ = 0; - onChanged(); - return this; - } - - private int valign_ = 0; - /** - *
-       * The vertical alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return The enum numeric value on the wire for valign. - */ - @java.lang.Override public int getValignValue() { - return valign_; - } - /** - *
-       * The vertical alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @param value The enum numeric value on the wire for valign to set. - * @return This builder for chaining. - */ - public Builder setValignValue(int value) { - - valign_ = value; - onChanged(); - return this; - } - /** - *
-       * The vertical alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return The valign. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment getValign() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment result = com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment.valueOf(valign_); - return result == null ? com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment.UNRECOGNIZED : result; - } - /** - *
-       * The vertical alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @param value The valign to set. - * @return This builder for chaining. - */ - public Builder setValign(com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.VerticalAlignment value) { - if (value == null) { - throw new NullPointerException(); - } - - valign_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The vertical alignment
-       * 
- * - * .factset.protobuf.stach.v2.table.VerticalAlignment valign = 4; - * @return This builder for chaining. - */ - public Builder clearValign() { - - valign_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.DataFormat) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.DataFormat) - private static final com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat(); - } - - public static com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataFormat(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_DataFormat_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_DataFormat_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,fds/protobuf/stach/v2/table/DataFormat" + - ".proto\022\037factset.protobuf.stach.v2.table\032" + - "5fds/protobuf/stach/v2/table/HorizontalA" + - "lignment.proto\0323fds/protobuf/stach/v2/ta" + - "ble/VerticalAlignment.proto\"\273\001\n\nDataForm" + - "at\022\016\n\006format\030\001 \001(\t\022\023\n\013null_format\030\002 \001(\t\022" + - "D\n\006halign\030\003 \001(\01624.factset.protobuf.stach" + - ".v2.table.HorizontalAlignment\022B\n\006valign\030" + - "\004 \001(\01622.factset.protobuf.stach.v2.table." + - "VerticalAlignmentB\234\001\n#com.factset.protob" + - "uf.stach.v2.tableB\017DataFormatProtoZBgith" + - "ub.com/factset/stachschema-sdks/go/fds/p" + - "rotobuf/stach/v2/table\252\002\037FactSet.Protobu" + - "f.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.getDescriptor(), - com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_DataFormat_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_DataFormat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_DataFormat_descriptor, - new java.lang.String[] { "Format", "NullFormat", "Halign", "Valign", }); - com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.getDescriptor(); - com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/HorizontalAlignmentProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/HorizontalAlignmentProto.java deleted file mode 100644 index b1c8cc1..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/HorizontalAlignmentProto.java +++ /dev/null @@ -1,205 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/HorizontalAlignment.proto - -package com.factset.protobuf.stach.v2.table; - -public final class HorizontalAlignmentProto { - private HorizontalAlignmentProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * A horizontal alignment
-   * 
- * - * Protobuf enum {@code factset.protobuf.stach.v2.table.HorizontalAlignment} - */ - public enum HorizontalAlignment - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * This value should never be used, but exists to ensure that a value is specified
-     * 
- * - * UNKNOWN_HALIGN = 0; - */ - UNKNOWN_HALIGN(0), - /** - *
-     * Value is horizontally aligned to the left of the cell
-     * 
- * - * LEFT = 1; - */ - LEFT(1), - /** - *
-     * Value is horizontally aligned in the center of the cell
-     * 
- * - * CENTER = 2; - */ - CENTER(2), - /** - *
-     * Value is horizontally aligned to the right of the cell
-     * 
- * - * RIGHT = 3; - */ - RIGHT(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * This value should never be used, but exists to ensure that a value is specified
-     * 
- * - * UNKNOWN_HALIGN = 0; - */ - public static final int UNKNOWN_HALIGN_VALUE = 0; - /** - *
-     * Value is horizontally aligned to the left of the cell
-     * 
- * - * LEFT = 1; - */ - public static final int LEFT_VALUE = 1; - /** - *
-     * Value is horizontally aligned in the center of the cell
-     * 
- * - * CENTER = 2; - */ - public static final int CENTER_VALUE = 2; - /** - *
-     * Value is horizontally aligned to the right of the cell
-     * 
- * - * RIGHT = 3; - */ - public static final int RIGHT_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HorizontalAlignment valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static HorizontalAlignment forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_HALIGN; - case 1: return LEFT; - case 2: return CENTER; - case 3: return RIGHT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HorizontalAlignment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HorizontalAlignment findValueByNumber(int number) { - return HorizontalAlignment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.HorizontalAlignmentProto.getDescriptor().getEnumTypes().get(0); - } - - private static final HorizontalAlignment[] VALUES = values(); - - public static HorizontalAlignment valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HorizontalAlignment(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:factset.protobuf.stach.v2.table.HorizontalAlignment) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5fds/protobuf/stach/v2/table/Horizontal" + - "Alignment.proto\022\037factset.protobuf.stach." + - "v2.table*J\n\023HorizontalAlignment\022\022\n\016UNKNO" + - "WN_HALIGN\020\000\022\010\n\004LEFT\020\001\022\n\n\006CENTER\020\002\022\t\n\005RIG" + - "HT\020\003B\245\001\n#com.factset.protobuf.stach.v2.t" + - "ableB\030HorizontalAlignmentProtoZBgithub.c" + - "om/factset/stachschema-sdks/go/fds/proto" + - "buf/stach/v2/table\252\002\037FactSet.Protobuf.St" + - "ach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/ListOfMetadataProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/ListOfMetadataProto.java deleted file mode 100644 index e2cc436..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/ListOfMetadataProto.java +++ /dev/null @@ -1,767 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ListOfMetadata.proto - -package com.factset.protobuf.stach.v2.table; - -public final class ListOfMetadataProto { - private ListOfMetadataProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ListOfMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.ListOfMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @return A list containing the ids. - */ - java.util.List - getIdsList(); - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @return The count of ids. - */ - int getIdsCount(); - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @param index The index of the element to return. - * @return The ids at the given index. - */ - java.lang.String getIds(int index); - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @param index The index of the value to return. - * @return The bytes of the ids at the given index. - */ - com.google.protobuf.ByteString - getIdsBytes(int index); - } - /** - *
-   * A list of metadata ids
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.ListOfMetadata} - */ - public static final class ListOfMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.ListOfMetadata) - ListOfMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListOfMetadata.newBuilder() to construct. - private ListOfMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListOfMetadata() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListOfMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListOfMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ids_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ids_ = ids_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ListOfMetadataProto.internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ListOfMetadataProto.internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.class, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.Builder.class); - } - - public static final int IDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList ids_; - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @return A list containing the ids. - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_; - } - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @return The count of ids. - */ - public int getIdsCount() { - return ids_.size(); - } - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @param index The index of the element to return. - * @return The ids at the given index. - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - *
-     * The list of metadata ids
-     * 
- * - * repeated string ids = 1; - * @param index The index of the value to return. - * @return The bytes of the ids at the given index. - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ids_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < ids_.size(); i++) { - dataSize += computeStringSizeNoTag(ids_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata other = (com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata) obj; - - if (!getIdsList() - .equals(other.getIdsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIdsCount() > 0) { - hash = (37 * hash) + IDS_FIELD_NUMBER; - hash = (53 * hash) + getIdsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A list of metadata ids
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.ListOfMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.ListOfMetadata) - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ListOfMetadataProto.internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ListOfMetadataProto.internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.class, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.ListOfMetadataProto.internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata build() { - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata buildPartial() { - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata result = new com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - ids_ = ids_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ids_ = ids_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata) { - return mergeFrom((com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata other) { - if (other == com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.getDefaultInstance()) return this; - if (!other.ids_.isEmpty()) { - if (ids_.isEmpty()) { - ids_ = other.ids_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIdsIsMutable(); - ids_.addAll(other.ids_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(ids_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @return A list containing the ids. - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_.getUnmodifiableView(); - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @return The count of ids. - */ - public int getIdsCount() { - return ids_.size(); - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @param index The index of the element to return. - * @return The ids at the given index. - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @param index The index of the value to return. - * @return The bytes of the ids at the given index. - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @param index The index to set the value at. - * @param value The ids to set. - * @return This builder for chaining. - */ - public Builder setIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @param value The ids to add. - * @return This builder for chaining. - */ - public Builder addIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @param values The ids to add. - * @return This builder for chaining. - */ - public Builder addAllIds( - java.lang.Iterable values) { - ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); - onChanged(); - return this; - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @return This builder for chaining. - */ - public Builder clearIds() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of metadata ids
-       * 
- * - * repeated string ids = 1; - * @param value The bytes of the ids to add. - * @return This builder for chaining. - */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdsIsMutable(); - ids_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.ListOfMetadata) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.ListOfMetadata) - private static final com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata(); - } - - public static com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOfMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOfMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0fds/protobuf/stach/v2/table/ListOfMeta" + - "data.proto\022\037factset.protobuf.stach.v2.ta" + - "ble\"\035\n\016ListOfMetadata\022\013\n\003ids\030\001 \003(\tB\240\001\n#c" + - "om.factset.protobuf.stach.v2.tableB\023List" + - "OfMetadataProtoZBgithub.com/factset/stac" + - "hschema-sdks/go/fds/protobuf/stach/v2/ta" + - "ble\252\002\037FactSet.Protobuf.Stach.V2.Tableb\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_ListOfMetadata_descriptor, - new java.lang.String[] { "Ids", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataCollectionProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataCollectionProto.java deleted file mode 100644 index e570053..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataCollectionProto.java +++ /dev/null @@ -1,1149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/MetadataCollection.proto - -package com.factset.protobuf.stach.v2.table; - -public final class MetadataCollectionProto { - private MetadataCollectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MetadataCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.MetadataCollection) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - int getItemsCount(); - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - boolean containsItems( - java.lang.String key); - /** - * Use {@link #getItemsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getItems(); - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - java.util.Map - getItemsMap(); - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue); - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrThrow( - java.lang.String key); - - /** - *
-     * The locations where metadata items are associated
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - * @return Whether the locations field is set. - */ - boolean hasLocations(); - /** - *
-     * The locations where metadata items are associated
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - * @return The locations. - */ - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations getLocations(); - /** - *
-     * The locations where metadata items are associated
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder getLocationsOrBuilder(); - } - /** - *
-   * A collection of metadata for a table
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataCollection} - */ - public static final class MetadataCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.MetadataCollection) - MetadataCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetadataCollection.newBuilder() to construct. - private MetadataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetadataCollection() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetadataCollection(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetadataCollection( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = com.google.protobuf.MapField.newMapField( - ItemsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - items__ = input.readMessage( - ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - items_.getMutableMap().put( - items__.getKey(), items__.getValue()); - break; - } - case 18: { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder subBuilder = null; - if (locations_ != null) { - subBuilder = locations_.toBuilder(); - } - locations_ = input.readMessage(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(locations_); - locations_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataCollectionProto.internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetItems(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataCollectionProto.internal_static_factset_protobuf_stach_v2_table_MetadataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.class, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder.class); - } - - public static final int ITEMS_FIELD_NUMBER = 1; - private static final class ItemsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.internal_static_factset_protobuf_stach_v2_table_MetadataCollection_ItemsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> items_; - private com.google.protobuf.MapField - internalGetItems() { - if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); - } - return items_; - } - - public int getItemsCount() { - return internalGetItems().getMap().size(); - } - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetItems().getMap().containsKey(key); - } - /** - * Use {@link #getItemsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getItems() { - return getItemsMap(); - } - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public java.util.Map getItemsMap() { - return internalGetItems().getMap(); - } - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The metadata items associated with a table
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOCATIONS_FIELD_NUMBER = 2; - private com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations locations_; - /** - *
-     * The locations where metadata items are associated
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - * @return Whether the locations field is set. - */ - @java.lang.Override - public boolean hasLocations() { - return locations_ != null; - } - /** - *
-     * The locations where metadata items are associated
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - * @return The locations. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations getLocations() { - return locations_ == null ? com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.getDefaultInstance() : locations_; - } - /** - *
-     * The locations where metadata items are associated
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder getLocationsOrBuilder() { - return getLocations(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetItems(), - ItemsDefaultEntryHolder.defaultEntry, - 1); - if (locations_ != null) { - output.writeMessage(2, getLocations()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetItems().getMap().entrySet()) { - com.google.protobuf.MapEntry - items__ = ItemsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items__); - } - if (locations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLocations()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection other = (com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection) obj; - - if (!internalGetItems().equals( - other.internalGetItems())) return false; - if (hasLocations() != other.hasLocations()) return false; - if (hasLocations()) { - if (!getLocations() - .equals(other.getLocations())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetItems().getMap().isEmpty()) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + internalGetItems().hashCode(); - } - if (hasLocations()) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocations().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A collection of metadata for a table
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.MetadataCollection) - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataCollectionProto.internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetItems(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableItems(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataCollectionProto.internal_static_factset_protobuf_stach_v2_table_MetadataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.class, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableItems().clear(); - if (locationsBuilder_ == null) { - locations_ = null; - } else { - locations_ = null; - locationsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.MetadataCollectionProto.internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection build() { - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection buildPartial() { - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection result = new com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection(this); - int from_bitField0_ = bitField0_; - result.items_ = internalGetItems(); - result.items_.makeImmutable(); - if (locationsBuilder_ == null) { - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection) { - return mergeFrom((com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection other) { - if (other == com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.getDefaultInstance()) return this; - internalGetMutableItems().mergeFrom( - other.internalGetItems()); - if (other.hasLocations()) { - mergeLocations(other.getLocations()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem> items_; - private com.google.protobuf.MapField - internalGetItems() { - if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); - } - return items_; - } - private com.google.protobuf.MapField - internalGetMutableItems() { - onChanged();; - if (items_ == null) { - items_ = com.google.protobuf.MapField.newMapField( - ItemsDefaultEntryHolder.defaultEntry); - } - if (!items_.isMutable()) { - items_ = items_.copy(); - } - return items_; - } - - public int getItemsCount() { - return internalGetItems().getMap().size(); - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetItems().getMap().containsKey(key); - } - /** - * Use {@link #getItemsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getItems() { - return getItemsMap(); - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public java.util.Map getItemsMap() { - return internalGetItems().getMap(); - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetItems().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearItems() { - internalGetMutableItems().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - public Builder removeItems( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableItems().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableItems() { - return internalGetMutableItems().getMutableMap(); - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - public Builder putItems( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableItems().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The metadata items associated with a table
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataItem> items = 1; - */ - - public Builder putAllItems( - java.util.Map values) { - internalGetMutableItems().getMutableMap() - .putAll(values); - return this; - } - - private com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations locations_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder> locationsBuilder_; - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - * @return Whether the locations field is set. - */ - public boolean hasLocations() { - return locationsBuilder_ != null || locations_ != null; - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - * @return The locations. - */ - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations getLocations() { - if (locationsBuilder_ == null) { - return locations_ == null ? com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.getDefaultInstance() : locations_; - } else { - return locationsBuilder_.getMessage(); - } - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - public Builder setLocations(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - locations_ = value; - onChanged(); - } else { - locationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - public Builder setLocations( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder builderForValue) { - if (locationsBuilder_ == null) { - locations_ = builderForValue.build(); - onChanged(); - } else { - locationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - public Builder mergeLocations(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations value) { - if (locationsBuilder_ == null) { - if (locations_ != null) { - locations_ = - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.newBuilder(locations_).mergeFrom(value).buildPartial(); - } else { - locations_ = value; - } - onChanged(); - } else { - locationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = null; - onChanged(); - } else { - locations_ = null; - locationsBuilder_ = null; - } - - return this; - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder getLocationsBuilder() { - - onChanged(); - return getLocationsFieldBuilder().getBuilder(); - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder getLocationsOrBuilder() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilder(); - } else { - return locations_ == null ? - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.getDefaultInstance() : locations_; - } - } - /** - *
-       * The locations where metadata items are associated
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations locations = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder>( - getLocations(), - getParentForChildren(), - isClean()); - locations_ = null; - } - return locationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.MetadataCollection) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataCollection) - private static final com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection(); - } - - public static com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetadataCollection(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_ItemsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_ItemsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4fds/protobuf/stach/v2/table/MetadataCo" + - "llection.proto\022\037factset.protobuf.stach.v" + - "2.table\032.fds/protobuf/stach/v2/table/Met" + - "adataItem.proto\0323fds/protobuf/stach/v2/t" + - "able/MetadataLocations.proto\"\207\002\n\022Metadat" + - "aCollection\022M\n\005items\030\001 \003(\0132>.factset.pro" + - "tobuf.stach.v2.table.MetadataCollection." + - "ItemsEntry\022E\n\tlocations\030\002 \001(\01322.factset." + - "protobuf.stach.v2.table.MetadataLocation" + - "s\032[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " + - "\001(\0132-.factset.protobuf.stach.v2.table.Me" + - "tadataItem:\0028\001B\244\001\n#com.factset.protobuf." + - "stach.v2.tableB\027MetadataCollectionProtoZ" + - "Bgithub.com/factset/stachschema-sdks/go/" + - "fds/protobuf/stach/v2/table\252\002\037FactSet.Pr" + - "otobuf.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.MetadataItemProto.getDescriptor(), - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor, - new java.lang.String[] { "Items", "Locations", }); - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_ItemsEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_descriptor.getNestedTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_ItemsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataCollection_ItemsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.factset.protobuf.stach.v2.table.MetadataItemProto.getDescriptor(); - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataItemProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataItemProto.java deleted file mode 100644 index 4d93070..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataItemProto.java +++ /dev/null @@ -1,1138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/MetadataItem.proto - -package com.factset.protobuf.stach.v2.table; - -public final class MetadataItemProto { - private MetadataItemProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MetadataItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.MetadataItem) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The value
-     * 
- * - * .google.protobuf.Value value = 1; - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - *
-     * The value
-     * 
- * - * .google.protobuf.Value value = 1; - * @return The value. - */ - com.google.protobuf.Value getValue(); - /** - *
-     * The value
-     * 
- * - * .google.protobuf.Value value = 1; - */ - com.google.protobuf.ValueOrBuilder getValueOrBuilder(); - - /** - *
-     * The table reference
-     * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - * @return Whether the reference field is set. - */ - boolean hasReference(); - /** - *
-     * The table reference
-     * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - * @return The reference. - */ - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference getReference(); - /** - *
-     * The table reference
-     * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder getReferenceOrBuilder(); - - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.DataCase getDataCase(); - } - /** - *
-   * A metadata item
-   * Represents data to describe the table or parts of the table
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataItem} - */ - public static final class MetadataItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.MetadataItem) - MetadataItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetadataItem.newBuilder() to construct. - private MetadataItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetadataItem() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetadataItem(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetadataItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Value.Builder subBuilder = null; - if (dataCase_ == 1) { - subBuilder = ((com.google.protobuf.Value) data_).toBuilder(); - } - data_ = - input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Value) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 1; - break; - } - case 18: { - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder subBuilder = null; - if (dataCase_ == 2) { - subBuilder = ((com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_).toBuilder(); - } - data_ = - input.readMessage(com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataItemProto.internal_static_factset_protobuf_stach_v2_table_MetadataItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataItemProto.internal_static_factset_protobuf_stach_v2_table_MetadataItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.class, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.Builder.class); - } - - private int dataCase_ = 0; - private java.lang.Object data_; - public enum DataCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VALUE(1), - REFERENCE(2), - DATA_NOT_SET(0); - private final int value; - private DataCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataCase valueOf(int value) { - return forNumber(value); - } - - public static DataCase forNumber(int value) { - switch (value) { - case 1: return VALUE; - case 2: return REFERENCE; - case 0: return DATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public static final int VALUE_FIELD_NUMBER = 1; - /** - *
-     * The value
-     * 
- * - * .google.protobuf.Value value = 1; - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return dataCase_ == 1; - } - /** - *
-     * The value
-     * 
- * - * .google.protobuf.Value value = 1; - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.Value getValue() { - if (dataCase_ == 1) { - return (com.google.protobuf.Value) data_; - } - return com.google.protobuf.Value.getDefaultInstance(); - } - /** - *
-     * The value
-     * 
- * - * .google.protobuf.Value value = 1; - */ - @java.lang.Override - public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - if (dataCase_ == 1) { - return (com.google.protobuf.Value) data_; - } - return com.google.protobuf.Value.getDefaultInstance(); - } - - public static final int REFERENCE_FIELD_NUMBER = 2; - /** - *
-     * The table reference
-     * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - * @return Whether the reference field is set. - */ - @java.lang.Override - public boolean hasReference() { - return dataCase_ == 2; - } - /** - *
-     * The table reference
-     * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - * @return The reference. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference getReference() { - if (dataCase_ == 2) { - return (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_; - } - return com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } - /** - *
-     * The table reference
-     * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder getReferenceOrBuilder() { - if (dataCase_ == 2) { - return (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_; - } - return com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dataCase_ == 1) { - output.writeMessage(1, (com.google.protobuf.Value) data_); - } - if (dataCase_ == 2) { - output.writeMessage(2, (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.protobuf.Value) data_); - } - if (dataCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem other = (com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem) obj; - - if (!getDataCase().equals(other.getDataCase())) return false; - switch (dataCase_) { - case 1: - if (!getValue() - .equals(other.getValue())) return false; - break; - case 2: - if (!getReference() - .equals(other.getReference())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (dataCase_) { - case 1: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 2: - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A metadata item
-     * Represents data to describe the table or parts of the table
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.MetadataItem) - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataItemProto.internal_static_factset_protobuf_stach_v2_table_MetadataItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataItemProto.internal_static_factset_protobuf_stach_v2_table_MetadataItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.class, com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dataCase_ = 0; - data_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.MetadataItemProto.internal_static_factset_protobuf_stach_v2_table_MetadataItem_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem build() { - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem buildPartial() { - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem result = new com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem(this); - if (dataCase_ == 1) { - if (valueBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valueBuilder_.build(); - } - } - if (dataCase_ == 2) { - if (referenceBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = referenceBuilder_.build(); - } - } - result.dataCase_ = dataCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem) { - return mergeFrom((com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem other) { - if (other == com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem.getDefaultInstance()) return this; - switch (other.getDataCase()) { - case VALUE: { - mergeValue(other.getValue()); - break; - } - case REFERENCE: { - mergeReference(other.getReference()); - break; - } - case DATA_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataCase_ = 0; - private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public Builder clearData() { - dataCase_ = 0; - data_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valueBuilder_; - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return dataCase_ == 1; - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.Value getValue() { - if (valueBuilder_ == null) { - if (dataCase_ == 1) { - return (com.google.protobuf.Value) data_; - } - return com.google.protobuf.Value.getDefaultInstance(); - } else { - if (dataCase_ == 1) { - return valueBuilder_.getMessage(); - } - return com.google.protobuf.Value.getDefaultInstance(); - } - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - public Builder setValue(com.google.protobuf.Value value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - public Builder setValue( - com.google.protobuf.Value.Builder builderForValue) { - if (valueBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 1; - return this; - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - public Builder mergeValue(com.google.protobuf.Value value) { - if (valueBuilder_ == null) { - if (dataCase_ == 1 && - data_ != com.google.protobuf.Value.getDefaultInstance()) { - data_ = com.google.protobuf.Value.newBuilder((com.google.protobuf.Value) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 1) { - valueBuilder_.mergeFrom(value); - } - valueBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - } - valueBuilder_.clear(); - } - return this; - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - public com.google.protobuf.Value.Builder getValueBuilder() { - return getValueFieldBuilder().getBuilder(); - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - @java.lang.Override - public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - if ((dataCase_ == 1) && (valueBuilder_ != null)) { - return valueBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 1) { - return (com.google.protobuf.Value) data_; - } - return com.google.protobuf.Value.getDefaultInstance(); - } - } - /** - *
-       * The value
-       * 
- * - * .google.protobuf.Value value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - if (!(dataCase_ == 1)) { - data_ = com.google.protobuf.Value.getDefaultInstance(); - } - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - (com.google.protobuf.Value) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 1; - onChanged();; - return valueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference, com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder, com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder> referenceBuilder_; - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - * @return Whether the reference field is set. - */ - @java.lang.Override - public boolean hasReference() { - return dataCase_ == 2; - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - * @return The reference. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference getReference() { - if (referenceBuilder_ == null) { - if (dataCase_ == 2) { - return (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_; - } - return com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } else { - if (dataCase_ == 2) { - return referenceBuilder_.getMessage(); - } - return com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - public Builder setReference(com.factset.protobuf.stach.v2.table.ReferenceProto.Reference value) { - if (referenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - referenceBuilder_.setMessage(value); - } - dataCase_ = 2; - return this; - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - public Builder setReference( - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder builderForValue) { - if (referenceBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - referenceBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 2; - return this; - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - public Builder mergeReference(com.factset.protobuf.stach.v2.table.ReferenceProto.Reference value) { - if (referenceBuilder_ == null) { - if (dataCase_ == 2 && - data_ != com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance()) { - data_ = com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.newBuilder((com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 2) { - referenceBuilder_.mergeFrom(value); - } - referenceBuilder_.setMessage(value); - } - dataCase_ = 2; - return this; - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - public Builder clearReference() { - if (referenceBuilder_ == null) { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - } - referenceBuilder_.clear(); - } - return this; - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder getReferenceBuilder() { - return getReferenceFieldBuilder().getBuilder(); - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder getReferenceOrBuilder() { - if ((dataCase_ == 2) && (referenceBuilder_ != null)) { - return referenceBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 2) { - return (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_; - } - return com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } - } - /** - *
-       * The table reference
-       * 
- * - * .factset.protobuf.stach.v2.table.Reference reference = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference, com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder, com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder> - getReferenceFieldBuilder() { - if (referenceBuilder_ == null) { - if (!(dataCase_ == 2)) { - data_ = com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } - referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference, com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder, com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder>( - (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 2; - onChanged();; - return referenceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.MetadataItem) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataItem) - private static final com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem(); - } - - public static com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetadataItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataItem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.fds/protobuf/stach/v2/table/MetadataIt" + - "em.proto\022\037factset.protobuf.stach.v2.tabl" + - "e\032\034google/protobuf/struct.proto\032+fds/pro" + - "tobuf/stach/v2/table/Reference.proto\"\200\001\n" + - "\014MetadataItem\022\'\n\005value\030\001 \001(\0132\026.google.pr" + - "otobuf.ValueH\000\022?\n\treference\030\002 \001(\0132*.fact" + - "set.protobuf.stach.v2.table.ReferenceH\000B" + - "\006\n\004dataB\236\001\n#com.factset.protobuf.stach.v" + - "2.tableB\021MetadataItemProtoZBgithub.com/f" + - "actset/stachschema-sdks/go/fds/protobuf/" + - "stach/v2/table\252\002\037FactSet.Protobuf.Stach." + - "V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - com.factset.protobuf.stach.v2.table.ReferenceProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_MetadataItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataItem_descriptor, - new java.lang.String[] { "Value", "Reference", "Data", }); - com.google.protobuf.StructProto.getDescriptor(); - com.factset.protobuf.stach.v2.table.ReferenceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataLocationsProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataLocationsProto.java deleted file mode 100644 index 556f69a..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/MetadataLocationsProto.java +++ /dev/null @@ -1,3475 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/MetadataLocations.proto - -package com.factset.protobuf.stach.v2.table; - -public final class MetadataLocationsProto { - private MetadataLocationsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MetadataLocationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.MetadataLocations) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @return A list containing the table. - */ - java.util.List - getTableList(); - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @return The count of table. - */ - int getTableCount(); - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @param index The index of the element to return. - * @return The table at the given index. - */ - java.lang.String getTable(int index); - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @param index The index of the value to return. - * @return The bytes of the table at the given index. - */ - com.google.protobuf.ByteString - getTableBytes(int index); - - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - int getColumnsCount(); - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - boolean containsColumns( - java.lang.String key); - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getColumns(); - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - java.util.Map - getColumnsMap(); - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue); - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getColumnsOrThrow( - java.lang.String key); - - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - int getRowsCount(); - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - boolean containsRows( - java.lang.String key); - /** - * Use {@link #getRowsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRows(); - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - java.util.Map - getRowsMap(); - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue); - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrThrow( - java.lang.String key); - - /** - *
-     * The metadata items associated with specific cells
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - * @return Whether the cells field is set. - */ - boolean hasCells(); - /** - *
-     * The metadata items associated with specific cells
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - * @return The cells. - */ - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap getCells(); - /** - *
-     * The metadata items associated with specific cells
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder getCellsOrBuilder(); - } - /** - *
-   * The metadata locations for a table
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataLocations} - */ - public static final class MetadataLocations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.MetadataLocations) - MetadataLocationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetadataLocations.newBuilder() to construct. - private MetadataLocations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetadataLocations() { - table_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetadataLocations(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetadataLocations( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - table_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - table_.add(s); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - columns_ = com.google.protobuf.MapField.newMapField( - ColumnsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - columns__ = input.readMessage( - ColumnsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - columns_.getMutableMap().put( - columns__.getKey(), columns__.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rows_ = com.google.protobuf.MapField.newMapField( - RowsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - rows__ = input.readMessage( - RowsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rows_.getMutableMap().put( - rows__.getKey(), rows__.getValue()); - break; - } - case 34: { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder subBuilder = null; - if (cells_ != null) { - subBuilder = cells_.toBuilder(); - } - cells_ = input.readMessage(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cells_); - cells_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - table_ = table_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetColumns(); - case 3: - return internalGetRows(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.class, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder.class); - } - - public interface CellsColumnMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - int getColumnsCount(); - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - boolean containsColumns( - java.lang.String key); - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getColumns(); - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - java.util.Map - getColumnsMap(); - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap defaultValue); - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getColumnsOrThrow( - java.lang.String key); - } - /** - *
-     * A message wrapper for a map of columns to `CellsRowMap`
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} - */ - public static final class CellsColumnMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - CellsColumnMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use CellsColumnMap.newBuilder() to construct. - private CellsColumnMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CellsColumnMap() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CellsColumnMap(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CellsColumnMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = com.google.protobuf.MapField.newMapField( - ColumnsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - columns__ = input.readMessage( - ColumnsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - columns_.getMutableMap().put( - columns__.getKey(), columns__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetColumns(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.class, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder.class); - } - - public static final int COLUMNS_FIELD_NUMBER = 1; - private static final class ColumnsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_ColumnsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap> columns_; - private com.google.protobuf.MapField - internalGetColumns() { - if (columns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - return columns_; - } - - public int getColumnsCount() { - return internalGetColumns().getMap().size(); - } - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - - @java.lang.Override - public boolean containsColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumns().getMap().containsKey(key); - } - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumns() { - return getColumnsMap(); - } - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - @java.lang.Override - - public java.util.Map getColumnsMap() { - return internalGetColumns().getMap(); - } - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: column id) of columns to `CellsRowMap`
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getColumnsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetColumns(), - ColumnsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetColumns().getMap().entrySet()) { - com.google.protobuf.MapEntry - columns__ = ColumnsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, columns__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap other = (com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap) obj; - - if (!internalGetColumns().equals( - other.internalGetColumns())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetColumns().getMap().isEmpty()) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + internalGetColumns().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A message wrapper for a map of columns to `CellsRowMap`
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetColumns(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableColumns(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.class, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableColumns().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap build() { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap buildPartial() { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap result = new com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap(this); - int from_bitField0_ = bitField0_; - result.columns_ = internalGetColumns(); - result.columns_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap) { - return mergeFrom((com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap other) { - if (other == com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.getDefaultInstance()) return this; - internalGetMutableColumns().mergeFrom( - other.internalGetColumns()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap> columns_; - private com.google.protobuf.MapField - internalGetColumns() { - if (columns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - return columns_; - } - private com.google.protobuf.MapField - internalGetMutableColumns() { - onChanged();; - if (columns_ == null) { - columns_ = com.google.protobuf.MapField.newMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - if (!columns_.isMutable()) { - columns_ = columns_.copy(); - } - return columns_; - } - - public int getColumnsCount() { - return internalGetColumns().getMap().size(); - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - - @java.lang.Override - public boolean containsColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumns().getMap().containsKey(key); - } - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumns() { - return getColumnsMap(); - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - @java.lang.Override - - public java.util.Map getColumnsMap() { - return internalGetColumns().getMap(); - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getColumnsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearColumns() { - internalGetMutableColumns().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - - public Builder removeColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumns().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableColumns() { - return internalGetMutableColumns().getMutableMap(); - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - public Builder putColumns( - java.lang.String key, - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumns().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: column id) of columns to `CellsRowMap`
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap> columns = 1; - */ - - public Builder putAllColumns( - java.util.Map values) { - internalGetMutableColumns().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - private static final com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap(); - } - - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CellsColumnMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CellsColumnMap(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CellsRowMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - int getRowsCount(); - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - boolean containsRows( - java.lang.String key); - /** - * Use {@link #getRowsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRows(); - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - java.util.Map - getRowsMap(); - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue); - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrThrow( - java.lang.String key); - } - /** - *
-     * A message wrapper for a map of rows to a list of metadata
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} - */ - public static final class CellsRowMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - CellsRowMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use CellsRowMap.newBuilder() to construct. - private CellsRowMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CellsRowMap() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CellsRowMap(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CellsRowMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = com.google.protobuf.MapField.newMapField( - RowsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - rows__ = input.readMessage( - RowsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rows_.getMutableMap().put( - rows__.getKey(), rows__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRows(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.class, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.Builder.class); - } - - public static final int ROWS_FIELD_NUMBER = 1; - private static final class RowsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_RowsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> rows_; - private com.google.protobuf.MapField - internalGetRows() { - if (rows_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RowsDefaultEntryHolder.defaultEntry); - } - return rows_; - } - - public int getRowsCount() { - return internalGetRows().getMap().size(); - } - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - - @java.lang.Override - public boolean containsRows( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRows().getMap().containsKey(key); - } - /** - * Use {@link #getRowsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRows() { - return getRowsMap(); - } - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - @java.lang.Override - - public java.util.Map getRowsMap() { - return internalGetRows().getMap(); - } - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: row id) of rows to a list of metadata
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRows(), - RowsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetRows().getMap().entrySet()) { - com.google.protobuf.MapEntry - rows__ = RowsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap other = (com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap) obj; - - if (!internalGetRows().equals( - other.internalGetRows())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetRows().getMap().isEmpty()) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRows().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * A message wrapper for a map of rows to a list of metadata
-       * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRows(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableRows(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.class, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableRows().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap build() { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap buildPartial() { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap result = new com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap(this); - int from_bitField0_ = bitField0_; - result.rows_ = internalGetRows(); - result.rows_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap) { - return mergeFrom((com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap other) { - if (other == com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap.getDefaultInstance()) return this; - internalGetMutableRows().mergeFrom( - other.internalGetRows()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> rows_; - private com.google.protobuf.MapField - internalGetRows() { - if (rows_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RowsDefaultEntryHolder.defaultEntry); - } - return rows_; - } - private com.google.protobuf.MapField - internalGetMutableRows() { - onChanged();; - if (rows_ == null) { - rows_ = com.google.protobuf.MapField.newMapField( - RowsDefaultEntryHolder.defaultEntry); - } - if (!rows_.isMutable()) { - rows_ = rows_.copy(); - } - return rows_; - } - - public int getRowsCount() { - return internalGetRows().getMap().size(); - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - - @java.lang.Override - public boolean containsRows( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRows().getMap().containsKey(key); - } - /** - * Use {@link #getRowsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRows() { - return getRowsMap(); - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - @java.lang.Override - - public java.util.Map getRowsMap() { - return internalGetRows().getMap(); - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRows() { - internalGetMutableRows().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - - public Builder removeRows( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRows().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRows() { - return internalGetMutableRows().getMutableMap(); - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - public Builder putRows( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRows().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The map (key: row id) of rows to a list of metadata
-         * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 1; - */ - - public Builder putAllRows( - java.util.Map values) { - internalGetMutableRows().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - private static final com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap(); - } - - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CellsRowMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CellsRowMap(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsRowMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int TABLE_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList table_; - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @return A list containing the table. - */ - public com.google.protobuf.ProtocolStringList - getTableList() { - return table_; - } - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @return The count of table. - */ - public int getTableCount() { - return table_.size(); - } - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @param index The index of the element to return. - * @return The table at the given index. - */ - public java.lang.String getTable(int index) { - return table_.get(index); - } - /** - *
-     * The array (metadata item id) of metadata items associated with the whole table
-     * 
- * - * repeated string table = 1; - * @param index The index of the value to return. - * @return The bytes of the table at the given index. - */ - public com.google.protobuf.ByteString - getTableBytes(int index) { - return table_.getByteString(index); - } - - public static final int COLUMNS_FIELD_NUMBER = 2; - private static final class ColumnsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_ColumnsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> columns_; - private com.google.protobuf.MapField - internalGetColumns() { - if (columns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - return columns_; - } - - public int getColumnsCount() { - return internalGetColumns().getMap().size(); - } - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - - @java.lang.Override - public boolean containsColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumns().getMap().containsKey(key); - } - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumns() { - return getColumnsMap(); - } - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - @java.lang.Override - - public java.util.Map getColumnsMap() { - return internalGetColumns().getMap(); - } - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The map (key: column id) of all metadata items associated with a column
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getColumnsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ROWS_FIELD_NUMBER = 3; - private static final class RowsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_RowsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> rows_; - private com.google.protobuf.MapField - internalGetRows() { - if (rows_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RowsDefaultEntryHolder.defaultEntry); - } - return rows_; - } - - public int getRowsCount() { - return internalGetRows().getMap().size(); - } - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - - @java.lang.Override - public boolean containsRows( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRows().getMap().containsKey(key); - } - /** - * Use {@link #getRowsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRows() { - return getRowsMap(); - } - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - @java.lang.Override - - public java.util.Map getRowsMap() { - return internalGetRows().getMap(); - } - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The map (key: row id) of all metadata items associated with a row
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CELLS_FIELD_NUMBER = 4; - private com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap cells_; - /** - *
-     * The metadata items associated with specific cells
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - * @return Whether the cells field is set. - */ - @java.lang.Override - public boolean hasCells() { - return cells_ != null; - } - /** - *
-     * The metadata items associated with specific cells
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - * @return The cells. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap getCells() { - return cells_ == null ? com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.getDefaultInstance() : cells_; - } - /** - *
-     * The metadata items associated with specific cells
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder getCellsOrBuilder() { - return getCells(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < table_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetColumns(), - ColumnsDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRows(), - RowsDefaultEntryHolder.defaultEntry, - 3); - if (cells_ != null) { - output.writeMessage(4, getCells()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < table_.size(); i++) { - dataSize += computeStringSizeNoTag(table_.getRaw(i)); - } - size += dataSize; - size += 1 * getTableList().size(); - } - for (java.util.Map.Entry entry - : internalGetColumns().getMap().entrySet()) { - com.google.protobuf.MapEntry - columns__ = ColumnsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, columns__); - } - for (java.util.Map.Entry entry - : internalGetRows().getMap().entrySet()) { - com.google.protobuf.MapEntry - rows__ = RowsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rows__); - } - if (cells_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCells()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations other = (com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations) obj; - - if (!getTableList() - .equals(other.getTableList())) return false; - if (!internalGetColumns().equals( - other.internalGetColumns())) return false; - if (!internalGetRows().equals( - other.internalGetRows())) return false; - if (hasCells() != other.hasCells()) return false; - if (hasCells()) { - if (!getCells() - .equals(other.getCells())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTableCount() > 0) { - hash = (37 * hash) + TABLE_FIELD_NUMBER; - hash = (53 * hash) + getTableList().hashCode(); - } - if (!internalGetColumns().getMap().isEmpty()) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + internalGetColumns().hashCode(); - } - if (!internalGetRows().getMap().isEmpty()) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRows().hashCode(); - } - if (hasCells()) { - hash = (37 * hash) + CELLS_FIELD_NUMBER; - hash = (53 * hash) + getCells().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * The metadata locations for a table
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.MetadataLocations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.MetadataLocations) - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetColumns(); - case 3: - return internalGetRows(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableColumns(); - case 3: - return internalGetMutableRows(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.class, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - table_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableColumns().clear(); - internalGetMutableRows().clear(); - if (cellsBuilder_ == null) { - cells_ = null; - } else { - cells_ = null; - cellsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations build() { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations buildPartial() { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations result = new com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - table_ = table_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.table_ = table_; - result.columns_ = internalGetColumns(); - result.columns_.makeImmutable(); - result.rows_ = internalGetRows(); - result.rows_.makeImmutable(); - if (cellsBuilder_ == null) { - result.cells_ = cells_; - } else { - result.cells_ = cellsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations) { - return mergeFrom((com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations other) { - if (other == com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.getDefaultInstance()) return this; - if (!other.table_.isEmpty()) { - if (table_.isEmpty()) { - table_ = other.table_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTableIsMutable(); - table_.addAll(other.table_); - } - onChanged(); - } - internalGetMutableColumns().mergeFrom( - other.internalGetColumns()); - internalGetMutableRows().mergeFrom( - other.internalGetRows()); - if (other.hasCells()) { - mergeCells(other.getCells()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList table_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTableIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - table_ = new com.google.protobuf.LazyStringArrayList(table_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @return A list containing the table. - */ - public com.google.protobuf.ProtocolStringList - getTableList() { - return table_.getUnmodifiableView(); - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @return The count of table. - */ - public int getTableCount() { - return table_.size(); - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @param index The index of the element to return. - * @return The table at the given index. - */ - public java.lang.String getTable(int index) { - return table_.get(index); - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @param index The index of the value to return. - * @return The bytes of the table at the given index. - */ - public com.google.protobuf.ByteString - getTableBytes(int index) { - return table_.getByteString(index); - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @param index The index to set the value at. - * @param value The table to set. - * @return This builder for chaining. - */ - public Builder setTable( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTableIsMutable(); - table_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @param value The table to add. - * @return This builder for chaining. - */ - public Builder addTable( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTableIsMutable(); - table_.add(value); - onChanged(); - return this; - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @param values The table to add. - * @return This builder for chaining. - */ - public Builder addAllTable( - java.lang.Iterable values) { - ensureTableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, table_); - onChanged(); - return this; - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @return This builder for chaining. - */ - public Builder clearTable() { - table_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The array (metadata item id) of metadata items associated with the whole table
-       * 
- * - * repeated string table = 1; - * @param value The bytes of the table to add. - * @return This builder for chaining. - */ - public Builder addTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTableIsMutable(); - table_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> columns_; - private com.google.protobuf.MapField - internalGetColumns() { - if (columns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - return columns_; - } - private com.google.protobuf.MapField - internalGetMutableColumns() { - onChanged();; - if (columns_ == null) { - columns_ = com.google.protobuf.MapField.newMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - if (!columns_.isMutable()) { - columns_ = columns_.copy(); - } - return columns_; - } - - public int getColumnsCount() { - return internalGetColumns().getMap().size(); - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - - @java.lang.Override - public boolean containsColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumns().getMap().containsKey(key); - } - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumns() { - return getColumnsMap(); - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - @java.lang.Override - - public java.util.Map getColumnsMap() { - return internalGetColumns().getMap(); - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getColumnsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearColumns() { - internalGetMutableColumns().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - - public Builder removeColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumns().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableColumns() { - return internalGetMutableColumns().getMutableMap(); - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - public Builder putColumns( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumns().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The map (key: column id) of all metadata items associated with a column
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> columns = 2; - */ - - public Builder putAllColumns( - java.util.Map values) { - internalGetMutableColumns().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata> rows_; - private com.google.protobuf.MapField - internalGetRows() { - if (rows_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RowsDefaultEntryHolder.defaultEntry); - } - return rows_; - } - private com.google.protobuf.MapField - internalGetMutableRows() { - onChanged();; - if (rows_ == null) { - rows_ = com.google.protobuf.MapField.newMapField( - RowsDefaultEntryHolder.defaultEntry); - } - if (!rows_.isMutable()) { - rows_ = rows_.copy(); - } - return rows_; - } - - public int getRowsCount() { - return internalGetRows().getMap().size(); - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - - @java.lang.Override - public boolean containsRows( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRows().getMap().containsKey(key); - } - /** - * Use {@link #getRowsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRows() { - return getRowsMap(); - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - @java.lang.Override - - public java.util.Map getRowsMap() { - return internalGetRows().getMap(); - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata getRowsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRows().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRows() { - internalGetMutableRows().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - - public Builder removeRows( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRows().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRows() { - return internalGetMutableRows().getMutableMap(); - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - public Builder putRows( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.ListOfMetadata value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRows().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The map (key: row id) of all metadata items associated with a row
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ListOfMetadata> rows = 3; - */ - - public Builder putAllRows( - java.util.Map values) { - internalGetMutableRows().getMutableMap() - .putAll(values); - return this; - } - - private com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap cells_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder> cellsBuilder_; - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - * @return Whether the cells field is set. - */ - public boolean hasCells() { - return cellsBuilder_ != null || cells_ != null; - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - * @return The cells. - */ - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap getCells() { - if (cellsBuilder_ == null) { - return cells_ == null ? com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.getDefaultInstance() : cells_; - } else { - return cellsBuilder_.getMessage(); - } - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - public Builder setCells(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap value) { - if (cellsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cells_ = value; - onChanged(); - } else { - cellsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - public Builder setCells( - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder builderForValue) { - if (cellsBuilder_ == null) { - cells_ = builderForValue.build(); - onChanged(); - } else { - cellsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - public Builder mergeCells(com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap value) { - if (cellsBuilder_ == null) { - if (cells_ != null) { - cells_ = - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.newBuilder(cells_).mergeFrom(value).buildPartial(); - } else { - cells_ = value; - } - onChanged(); - } else { - cellsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - public Builder clearCells() { - if (cellsBuilder_ == null) { - cells_ = null; - onChanged(); - } else { - cells_ = null; - cellsBuilder_ = null; - } - - return this; - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder getCellsBuilder() { - - onChanged(); - return getCellsFieldBuilder().getBuilder(); - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder getCellsOrBuilder() { - if (cellsBuilder_ != null) { - return cellsBuilder_.getMessageOrBuilder(); - } else { - return cells_ == null ? - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.getDefaultInstance() : cells_; - } - } - /** - *
-       * The metadata items associated with specific cells
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap cells = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder> - getCellsFieldBuilder() { - if (cellsBuilder_ == null) { - cellsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMap.Builder, com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations.CellsColumnMapOrBuilder>( - getCells(), - getParentForChildren(), - isClean()); - cells_ = null; - } - return cellsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.MetadataLocations) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations) - private static final com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations(); - } - - public static com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataLocations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetadataLocations(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataLocationsProto.MetadataLocations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_ColumnsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_ColumnsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_RowsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_RowsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_ColumnsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_ColumnsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_RowsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_RowsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3fds/protobuf/stach/v2/table/MetadataLo" + - "cations.proto\022\037factset.protobuf.stach.v2" + - ".table\0320fds/protobuf/stach/v2/table/List" + - "OfMetadata.proto\"\373\006\n\021MetadataLocations\022\r" + - "\n\005table\030\001 \003(\t\022P\n\007columns\030\002 \003(\0132?.factset" + - ".protobuf.stach.v2.table.MetadataLocatio" + - "ns.ColumnsEntry\022J\n\004rows\030\003 \003(\0132<.factset." + - "protobuf.stach.v2.table.MetadataLocation" + - "s.RowsEntry\022P\n\005cells\030\004 \001(\0132A.factset.pro" + - "tobuf.stach.v2.table.MetadataLocations.C" + - "ellsColumnMap\032\341\001\n\016CellsColumnMap\022_\n\007colu" + - "mns\030\001 \003(\0132N.factset.protobuf.stach.v2.ta" + - "ble.MetadataLocations.CellsColumnMap.Col" + - "umnsEntry\032n\n\014ColumnsEntry\022\013\n\003key\030\001 \001(\t\022M" + - "\n\005value\030\002 \001(\0132>.factset.protobuf.stach.v" + - "2.table.MetadataLocations.CellsRowMap:\0028" + - "\001\032\303\001\n\013CellsRowMap\022V\n\004rows\030\001 \003(\0132H.factse" + - "t.protobuf.stach.v2.table.MetadataLocati" + - "ons.CellsRowMap.RowsEntry\032\\\n\tRowsEntry\022\013" + - "\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.factset.pro" + - "tobuf.stach.v2.table.ListOfMetadata:\0028\001\032" + - "_\n\014ColumnsEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 " + - "\001(\0132/.factset.protobuf.stach.v2.table.Li" + - "stOfMetadata:\0028\001\032\\\n\tRowsEntry\022\013\n\003key\030\001 \001" + - "(\t\022>\n\005value\030\002 \001(\0132/.factset.protobuf.sta" + - "ch.v2.table.ListOfMetadata:\0028\001B\243\001\n#com.f" + - "actset.protobuf.stach.v2.tableB\026Metadata" + - "LocationsProtoZBgithub.com/factset/stach" + - "schema-sdks/go/fds/protobuf/stach/v2/tab" + - "le\252\002\037FactSet.Protobuf.Stach.V2.Tableb\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor, - new java.lang.String[] { "Table", "Columns", "Rows", "Cells", }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor.getNestedTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_ColumnsEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_descriptor.getNestedTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_ColumnsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsColumnMap_ColumnsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor.getNestedTypes().get(1); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor, - new java.lang.String[] { "Rows", }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_RowsEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_descriptor.getNestedTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_RowsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_CellsRowMap_RowsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_ColumnsEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor.getNestedTypes().get(2); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_ColumnsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_ColumnsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_RowsEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_descriptor.getNestedTypes().get(3); - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_RowsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_MetadataLocations_RowsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.factset.protobuf.stach.v2.table.ListOfMetadataProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/ReferenceProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/ReferenceProto.java deleted file mode 100644 index 095646e..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/ReferenceProto.java +++ /dev/null @@ -1,1185 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/Reference.proto - -package com.factset.protobuf.stach.v2.table; - -public final class ReferenceProto { - private ReferenceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.Reference) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The type of the reference
-     * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return The enum numeric value on the wire for referenceType. - */ - int getReferenceTypeValue(); - /** - *
-     * The type of the reference
-     * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return The referenceType. - */ - com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType getReferenceType(); - - /** - *
-     * The table id
-     * 
- * - * string table_id = 2; - * @return The tableId. - */ - java.lang.String getTableId(); - /** - *
-     * The table id
-     * 
- * - * string table_id = 2; - * @return The bytes for tableId. - */ - com.google.protobuf.ByteString - getTableIdBytes(); - - /** - *
-     * The column id
-     * 
- * - * string column_id = 3; - * @return The columnId. - */ - java.lang.String getColumnId(); - /** - *
-     * The column id
-     * 
- * - * string column_id = 3; - * @return The bytes for columnId. - */ - com.google.protobuf.ByteString - getColumnIdBytes(); - - /** - *
-     * The row id
-     * 
- * - * string row_id = 4; - * @return The rowId. - */ - java.lang.String getRowId(); - /** - *
-     * The row id
-     * 
- * - * string row_id = 4; - * @return The bytes for rowId. - */ - com.google.protobuf.ByteString - getRowIdBytes(); - } - /** - *
-   * A reference to a table or a piece of a table
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.Reference} - */ - public static final class Reference extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.Reference) - ReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Reference.newBuilder() to construct. - private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Reference() { - referenceType_ = 0; - tableId_ = ""; - columnId_ = ""; - rowId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Reference(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Reference( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - referenceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tableId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - columnId_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - rowId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ReferenceProto.internal_static_factset_protobuf_stach_v2_table_Reference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ReferenceProto.internal_static_factset_protobuf_stach_v2_table_Reference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.class, com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder.class); - } - - public static final int REFERENCE_TYPE_FIELD_NUMBER = 1; - private int referenceType_; - /** - *
-     * The type of the reference
-     * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return The enum numeric value on the wire for referenceType. - */ - @java.lang.Override public int getReferenceTypeValue() { - return referenceType_; - } - /** - *
-     * The type of the reference
-     * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return The referenceType. - */ - @java.lang.Override public com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType getReferenceType() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType result = com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType.valueOf(referenceType_); - return result == null ? com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType.UNRECOGNIZED : result; - } - - public static final int TABLE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object tableId_; - /** - *
-     * The table id
-     * 
- * - * string table_id = 2; - * @return The tableId. - */ - @java.lang.Override - public java.lang.String getTableId() { - java.lang.Object ref = tableId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableId_ = s; - return s; - } - } - /** - *
-     * The table id
-     * 
- * - * string table_id = 2; - * @return The bytes for tableId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTableIdBytes() { - java.lang.Object ref = tableId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COLUMN_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object columnId_; - /** - *
-     * The column id
-     * 
- * - * string column_id = 3; - * @return The columnId. - */ - @java.lang.Override - public java.lang.String getColumnId() { - java.lang.Object ref = columnId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnId_ = s; - return s; - } - } - /** - *
-     * The column id
-     * 
- * - * string column_id = 3; - * @return The bytes for columnId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getColumnIdBytes() { - java.lang.Object ref = columnId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - columnId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROW_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object rowId_; - /** - *
-     * The row id
-     * 
- * - * string row_id = 4; - * @return The rowId. - */ - @java.lang.Override - public java.lang.String getRowId() { - java.lang.Object ref = rowId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rowId_ = s; - return s; - } - } - /** - *
-     * The row id
-     * 
- * - * string row_id = 4; - * @return The bytes for rowId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRowIdBytes() { - java.lang.Object ref = rowId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rowId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (referenceType_ != com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType.UNKNOWN_REFERENCE_TYPE.getNumber()) { - output.writeEnum(1, referenceType_); - } - if (!getTableIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableId_); - } - if (!getColumnIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, columnId_); - } - if (!getRowIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rowId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceType_ != com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType.UNKNOWN_REFERENCE_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, referenceType_); - } - if (!getTableIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableId_); - } - if (!getColumnIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, columnId_); - } - if (!getRowIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rowId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.ReferenceProto.Reference)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference other = (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) obj; - - if (referenceType_ != other.referenceType_) return false; - if (!getTableId() - .equals(other.getTableId())) return false; - if (!getColumnId() - .equals(other.getColumnId())) return false; - if (!getRowId() - .equals(other.getRowId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REFERENCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + referenceType_; - hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getTableId().hashCode(); - hash = (37 * hash) + COLUMN_ID_FIELD_NUMBER; - hash = (53 * hash) + getColumnId().hashCode(); - hash = (37 * hash) + ROW_ID_FIELD_NUMBER; - hash = (53 * hash) + getRowId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.ReferenceProto.Reference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A reference to a table or a piece of a table
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.Reference} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.Reference) - com.factset.protobuf.stach.v2.table.ReferenceProto.ReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ReferenceProto.internal_static_factset_protobuf_stach_v2_table_Reference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.ReferenceProto.internal_static_factset_protobuf_stach_v2_table_Reference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.class, com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - referenceType_ = 0; - - tableId_ = ""; - - columnId_ = ""; - - rowId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.ReferenceProto.internal_static_factset_protobuf_stach_v2_table_Reference_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference build() { - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference buildPartial() { - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference result = new com.factset.protobuf.stach.v2.table.ReferenceProto.Reference(this); - result.referenceType_ = referenceType_; - result.tableId_ = tableId_; - result.columnId_ = columnId_; - result.rowId_ = rowId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) { - return mergeFrom((com.factset.protobuf.stach.v2.table.ReferenceProto.Reference)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.ReferenceProto.Reference other) { - if (other == com.factset.protobuf.stach.v2.table.ReferenceProto.Reference.getDefaultInstance()) return this; - if (other.referenceType_ != 0) { - setReferenceTypeValue(other.getReferenceTypeValue()); - } - if (!other.getTableId().isEmpty()) { - tableId_ = other.tableId_; - onChanged(); - } - if (!other.getColumnId().isEmpty()) { - columnId_ = other.columnId_; - onChanged(); - } - if (!other.getRowId().isEmpty()) { - rowId_ = other.rowId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.ReferenceProto.Reference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.ReferenceProto.Reference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int referenceType_ = 0; - /** - *
-       * The type of the reference
-       * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return The enum numeric value on the wire for referenceType. - */ - @java.lang.Override public int getReferenceTypeValue() { - return referenceType_; - } - /** - *
-       * The type of the reference
-       * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @param value The enum numeric value on the wire for referenceType to set. - * @return This builder for chaining. - */ - public Builder setReferenceTypeValue(int value) { - - referenceType_ = value; - onChanged(); - return this; - } - /** - *
-       * The type of the reference
-       * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return The referenceType. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType getReferenceType() { - @SuppressWarnings("deprecation") - com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType result = com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType.valueOf(referenceType_); - return result == null ? com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType.UNRECOGNIZED : result; - } - /** - *
-       * The type of the reference
-       * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @param value The referenceType to set. - * @return This builder for chaining. - */ - public Builder setReferenceType(com.factset.protobuf.stach.v2.table.ReferenceTypeProto.ReferenceType value) { - if (value == null) { - throw new NullPointerException(); - } - - referenceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The type of the reference
-       * 
- * - * .factset.protobuf.stach.v2.table.ReferenceType reference_type = 1; - * @return This builder for chaining. - */ - public Builder clearReferenceType() { - - referenceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object tableId_ = ""; - /** - *
-       * The table id
-       * 
- * - * string table_id = 2; - * @return The tableId. - */ - public java.lang.String getTableId() { - java.lang.Object ref = tableId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The table id
-       * 
- * - * string table_id = 2; - * @return The bytes for tableId. - */ - public com.google.protobuf.ByteString - getTableIdBytes() { - java.lang.Object ref = tableId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The table id
-       * 
- * - * string table_id = 2; - * @param value The tableId to set. - * @return This builder for chaining. - */ - public Builder setTableId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tableId_ = value; - onChanged(); - return this; - } - /** - *
-       * The table id
-       * 
- * - * string table_id = 2; - * @return This builder for chaining. - */ - public Builder clearTableId() { - - tableId_ = getDefaultInstance().getTableId(); - onChanged(); - return this; - } - /** - *
-       * The table id
-       * 
- * - * string table_id = 2; - * @param value The bytes for tableId to set. - * @return This builder for chaining. - */ - public Builder setTableIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tableId_ = value; - onChanged(); - return this; - } - - private java.lang.Object columnId_ = ""; - /** - *
-       * The column id
-       * 
- * - * string column_id = 3; - * @return The columnId. - */ - public java.lang.String getColumnId() { - java.lang.Object ref = columnId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The column id
-       * 
- * - * string column_id = 3; - * @return The bytes for columnId. - */ - public com.google.protobuf.ByteString - getColumnIdBytes() { - java.lang.Object ref = columnId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - columnId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The column id
-       * 
- * - * string column_id = 3; - * @param value The columnId to set. - * @return This builder for chaining. - */ - public Builder setColumnId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - columnId_ = value; - onChanged(); - return this; - } - /** - *
-       * The column id
-       * 
- * - * string column_id = 3; - * @return This builder for chaining. - */ - public Builder clearColumnId() { - - columnId_ = getDefaultInstance().getColumnId(); - onChanged(); - return this; - } - /** - *
-       * The column id
-       * 
- * - * string column_id = 3; - * @param value The bytes for columnId to set. - * @return This builder for chaining. - */ - public Builder setColumnIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - columnId_ = value; - onChanged(); - return this; - } - - private java.lang.Object rowId_ = ""; - /** - *
-       * The row id
-       * 
- * - * string row_id = 4; - * @return The rowId. - */ - public java.lang.String getRowId() { - java.lang.Object ref = rowId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rowId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The row id
-       * 
- * - * string row_id = 4; - * @return The bytes for rowId. - */ - public com.google.protobuf.ByteString - getRowIdBytes() { - java.lang.Object ref = rowId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rowId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The row id
-       * 
- * - * string row_id = 4; - * @param value The rowId to set. - * @return This builder for chaining. - */ - public Builder setRowId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rowId_ = value; - onChanged(); - return this; - } - /** - *
-       * The row id
-       * 
- * - * string row_id = 4; - * @return This builder for chaining. - */ - public Builder clearRowId() { - - rowId_ = getDefaultInstance().getRowId(); - onChanged(); - return this; - } - /** - *
-       * The row id
-       * 
- * - * string row_id = 4; - * @param value The bytes for rowId to set. - * @return This builder for chaining. - */ - public Builder setRowIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rowId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.Reference) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.Reference) - private static final com.factset.protobuf.stach.v2.table.ReferenceProto.Reference DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.ReferenceProto.Reference(); - } - - public static com.factset.protobuf.stach.v2.table.ReferenceProto.Reference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reference(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ReferenceProto.Reference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_Reference_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_Reference_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+fds/protobuf/stach/v2/table/Reference." + - "proto\022\037factset.protobuf.stach.v2.table\032/" + - "fds/protobuf/stach/v2/table/ReferenceTyp" + - "e.proto\"\210\001\n\tReference\022F\n\016reference_type\030" + - "\001 \001(\0162..factset.protobuf.stach.v2.table." + - "ReferenceType\022\020\n\010table_id\030\002 \001(\t\022\021\n\tcolum" + - "n_id\030\003 \001(\t\022\016\n\006row_id\030\004 \001(\tB\233\001\n#com.facts" + - "et.protobuf.stach.v2.tableB\016ReferencePro" + - "toZBgithub.com/factset/stachschema-sdks/" + - "go/fds/protobuf/stach/v2/table\252\002\037FactSet" + - ".Protobuf.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.ReferenceTypeProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_Reference_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_Reference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_Reference_descriptor, - new java.lang.String[] { "ReferenceType", "TableId", "ColumnId", "RowId", }); - com.factset.protobuf.stach.v2.table.ReferenceTypeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/ReferenceTypeProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/ReferenceTypeProto.java deleted file mode 100644 index 19a1fd7..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/ReferenceTypeProto.java +++ /dev/null @@ -1,222 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/ReferenceType.proto - -package com.factset.protobuf.stach.v2.table; - -public final class ReferenceTypeProto { - private ReferenceTypeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The type of table reference
-   * 
- * - * Protobuf enum {@code factset.protobuf.stach.v2.table.ReferenceType} - */ - public enum ReferenceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * This value should never be used, but exists to ensure that a value is specified
-     * 
- * - * UNKNOWN_REFERENCE_TYPE = 0; - */ - UNKNOWN_REFERENCE_TYPE(0), - /** - *
-     * The table reference
-     * 
- * - * TABLE = 1; - */ - TABLE(1), - /** - *
-     * The column reference
-     * 
- * - * COLUMN = 2; - */ - COLUMN(2), - /** - *
-     * The row reference
-     * 
- * - * ROW = 3; - */ - ROW(3), - /** - *
-     * The cell reference
-     * 
- * - * CELL = 4; - */ - CELL(4), - UNRECOGNIZED(-1), - ; - - /** - *
-     * This value should never be used, but exists to ensure that a value is specified
-     * 
- * - * UNKNOWN_REFERENCE_TYPE = 0; - */ - public static final int UNKNOWN_REFERENCE_TYPE_VALUE = 0; - /** - *
-     * The table reference
-     * 
- * - * TABLE = 1; - */ - public static final int TABLE_VALUE = 1; - /** - *
-     * The column reference
-     * 
- * - * COLUMN = 2; - */ - public static final int COLUMN_VALUE = 2; - /** - *
-     * The row reference
-     * 
- * - * ROW = 3; - */ - public static final int ROW_VALUE = 3; - /** - *
-     * The cell reference
-     * 
- * - * CELL = 4; - */ - public static final int CELL_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ReferenceType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_REFERENCE_TYPE; - case 1: return TABLE; - case 2: return COLUMN; - case 3: return ROW; - case 4: return CELL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ReferenceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ReferenceType findValueByNumber(int number) { - return ReferenceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.ReferenceTypeProto.getDescriptor().getEnumTypes().get(0); - } - - private static final ReferenceType[] VALUES = values(); - - public static ReferenceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ReferenceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:factset.protobuf.stach.v2.table.ReferenceType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/fds/protobuf/stach/v2/table/ReferenceT" + - "ype.proto\022\037factset.protobuf.stach.v2.tab" + - "le*U\n\rReferenceType\022\032\n\026UNKNOWN_REFERENCE" + - "_TYPE\020\000\022\t\n\005TABLE\020\001\022\n\n\006COLUMN\020\002\022\007\n\003ROW\020\003\022" + - "\010\n\004CELL\020\004B\237\001\n#com.factset.protobuf.stach" + - ".v2.tableB\022ReferenceTypeProtoZBgithub.co" + - "m/factset/stachschema-sdks/go/fds/protob" + - "uf/stach/v2/table\252\002\037FactSet.Protobuf.Sta" + - "ch.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/TableDataProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/TableDataProto.java deleted file mode 100644 index 406133f..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/TableDataProto.java +++ /dev/null @@ -1,1637 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/TableData.proto - -package com.factset.protobuf.stach.v2.table; - -public final class TableDataProto { - private TableDataProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TableDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.TableData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - java.util.List - getRowsList(); - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getRows(int index); - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - int getRowsCount(); - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - java.util.List - getRowsOrBuilderList(); - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder getRowsOrBuilder( - int index); - - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - int getColumnsCount(); - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - boolean containsColumns( - java.lang.String key); - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getColumns(); - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - java.util.Map - getColumnsMap(); - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData defaultValue); - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getColumnsOrThrow( - java.lang.String key); - - /** - *
-     * The metadata
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - *
-     * The metadata
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - * @return The metadata. - */ - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection getMetadata(); - /** - *
-     * The metadata
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * An object of table data
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.TableData} - */ - public static final class TableData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.TableData) - TableDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableData.newBuilder() to construct. - private TableData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableData() { - rows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rows_.add( - input.readMessage(com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - columns_ = com.google.protobuf.MapField.newMapField( - ColumnsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - columns__ = input.readMessage( - ColumnsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - columns_.getMutableMap().put( - columns__.getKey(), columns__.getValue()); - break; - } - case 26: { - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.TableDataProto.internal_static_factset_protobuf_stach_v2_table_TableData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetColumns(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.TableDataProto.internal_static_factset_protobuf_stach_v2_table_TableData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.TableDataProto.TableData.class, com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder.class); - } - - public static final int ROWS_FIELD_NUMBER = 1; - private java.util.List rows_; - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getRows(int index) { - return rows_.get(index); - } - /** - *
-     * The array of rows definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder getRowsOrBuilder( - int index) { - return rows_.get(index); - } - - public static final int COLUMNS_FIELD_NUMBER = 2; - private static final class ColumnsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.factset.protobuf.stach.v2.table.TableDataProto.internal_static_factset_protobuf_stach_v2_table_TableData_ColumnsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData> columns_; - private com.google.protobuf.MapField - internalGetColumns() { - if (columns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - return columns_; - } - - public int getColumnsCount() { - return internalGetColumns().getMap().size(); - } - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - - @java.lang.Override - public boolean containsColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumns().getMap().containsKey(key); - } - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumns() { - return getColumnsMap(); - } - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - @java.lang.Override - - public java.util.Map getColumnsMap() { - return internalGetColumns().getMap(); - } - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The map (key: column id) of column data
-     * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getColumnsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection metadata_; - /** - *
-     * The metadata
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * The metadata
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - * @return The metadata. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection getMetadata() { - return metadata_ == null ? com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.getDefaultInstance() : metadata_; - } - /** - *
-     * The metadata
-     * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(1, rows_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetColumns(), - ColumnsDefaultEntryHolder.defaultEntry, - 2); - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetColumns().getMap().entrySet()) { - com.google.protobuf.MapEntry - columns__ = ColumnsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, columns__); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.TableDataProto.TableData)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.TableDataProto.TableData other = (com.factset.protobuf.stach.v2.table.TableDataProto.TableData) obj; - - if (!getRowsList() - .equals(other.getRowsList())) return false; - if (!internalGetColumns().equals( - other.internalGetColumns())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - if (!internalGetColumns().getMap().isEmpty()) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + internalGetColumns().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.TableDataProto.TableData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An object of table data
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.TableData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.TableData) - com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.TableDataProto.internal_static_factset_protobuf_stach_v2_table_TableData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetColumns(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableColumns(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.TableDataProto.internal_static_factset_protobuf_stach_v2_table_TableData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.TableDataProto.TableData.class, com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.TableDataProto.TableData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rowsBuilder_.clear(); - } - internalGetMutableColumns().clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.TableDataProto.internal_static_factset_protobuf_stach_v2_table_TableData_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.TableDataProto.TableData.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData build() { - com.factset.protobuf.stach.v2.table.TableDataProto.TableData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData buildPartial() { - com.factset.protobuf.stach.v2.table.TableDataProto.TableData result = new com.factset.protobuf.stach.v2.table.TableDataProto.TableData(this); - int from_bitField0_ = bitField0_; - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - result.columns_ = internalGetColumns(); - result.columns_.makeImmutable(); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.TableDataProto.TableData) { - return mergeFrom((com.factset.protobuf.stach.v2.table.TableDataProto.TableData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.TableDataProto.TableData other) { - if (other == com.factset.protobuf.stach.v2.table.TableDataProto.TableData.getDefaultInstance()) return this; - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000001); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowsFieldBuilder() : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - internalGetMutableColumns().mergeFrom( - other.internalGetColumns()); - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.TableDataProto.TableData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.TableDataProto.TableData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rows_ = - java.util.Collections.emptyList(); - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder> rowsBuilder_; - - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder setRows( - int index, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder setRows( - int index, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder addRows(com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder addRows( - int index, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder addRows( - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder addRows( - int index, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder getRowsBuilder( - int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder getRowsOrBuilder( - int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.getDefaultInstance()); - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.getDefaultInstance()); - } - /** - *
-       * The array of rows definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.RowDefinition rows = 1; - */ - public java.util.List - getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder>( - rows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData> columns_; - private com.google.protobuf.MapField - internalGetColumns() { - if (columns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - return columns_; - } - private com.google.protobuf.MapField - internalGetMutableColumns() { - onChanged();; - if (columns_ == null) { - columns_ = com.google.protobuf.MapField.newMapField( - ColumnsDefaultEntryHolder.defaultEntry); - } - if (!columns_.isMutable()) { - columns_ = columns_.copy(); - } - return columns_; - } - - public int getColumnsCount() { - return internalGetColumns().getMap().size(); - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - - @java.lang.Override - public boolean containsColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetColumns().getMap().containsKey(key); - } - /** - * Use {@link #getColumnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getColumns() { - return getColumnsMap(); - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - @java.lang.Override - - public java.util.Map getColumnsMap() { - return internalGetColumns().getMap(); - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getColumnsOrDefault( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - @java.lang.Override - - public com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData getColumnsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetColumns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearColumns() { - internalGetMutableColumns().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - - public Builder removeColumns( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumns().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableColumns() { - return internalGetMutableColumns().getMutableMap(); - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - public Builder putColumns( - java.lang.String key, - com.factset.protobuf.stach.v2.table.ColumnDataProto.ColumnData value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableColumns().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The map (key: column id) of column data
-       * 
- * - * map<string, .factset.protobuf.stach.v2.table.ColumnData> columns = 2; - */ - - public Builder putAllColumns( - java.util.Map values) { - internalGetMutableColumns().getMutableMap() - .putAll(values); - return this; - } - - private com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder> metadataBuilder_; - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - * @return The metadata. - */ - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - public Builder setMetadata(com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - public Builder setMetadata( - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - public Builder mergeMetadata(com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - public com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.getDefaultInstance() : metadata_; - } - } - /** - *
-       * The metadata
-       * 
- * - * .factset.protobuf.stach.v2.table.MetadataCollection metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollection.Builder, com.factset.protobuf.stach.v2.table.MetadataCollectionProto.MetadataCollectionOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.TableData) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.TableData) - private static final com.factset.protobuf.stach.v2.table.TableDataProto.TableData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.TableDataProto.TableData(); - } - - public static com.factset.protobuf.stach.v2.table.TableDataProto.TableData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_TableData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_TableData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_TableData_ColumnsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_TableData_ColumnsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+fds/protobuf/stach/v2/table/TableData." + - "proto\022\037factset.protobuf.stach.v2.table\032," + - "fds/protobuf/stach/v2/table/ColumnData.p" + - "roto\0324fds/protobuf/stach/v2/table/Metada" + - "taCollection.proto\032/fds/protobuf/stach/v" + - "2/table/RowDefinition.proto\"\267\002\n\tTableDat" + - "a\022<\n\004rows\030\001 \003(\0132..factset.protobuf.stach" + - ".v2.table.RowDefinition\022H\n\007columns\030\002 \003(\013" + - "27.factset.protobuf.stach.v2.table.Table" + - "Data.ColumnsEntry\022E\n\010metadata\030\003 \001(\01323.fa" + - "ctset.protobuf.stach.v2.table.MetadataCo" + - "llection\032[\n\014ColumnsEntry\022\013\n\003key\030\001 \001(\t\022:\n" + - "\005value\030\002 \001(\0132+.factset.protobuf.stach.v2" + - ".table.ColumnData:\0028\001B\233\001\n#com.factset.pr" + - "otobuf.stach.v2.tableB\016TableDataProtoZBg" + - "ithub.com/factset/stachschema-sdks/go/fd" + - "s/protobuf/stach/v2/table\252\002\037FactSet.Prot" + - "obuf.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.ColumnDataProto.getDescriptor(), - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.getDescriptor(), - com.factset.protobuf.stach.v2.table.RowDefinitionProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_TableData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_TableData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_TableData_descriptor, - new java.lang.String[] { "Rows", "Columns", "Metadata", }); - internal_static_factset_protobuf_stach_v2_table_TableData_ColumnsEntry_descriptor = - internal_static_factset_protobuf_stach_v2_table_TableData_descriptor.getNestedTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_TableData_ColumnsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_TableData_ColumnsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.factset.protobuf.stach.v2.table.ColumnDataProto.getDescriptor(); - com.factset.protobuf.stach.v2.table.MetadataCollectionProto.getDescriptor(); - com.factset.protobuf.stach.v2.table.RowDefinitionProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/TableDefinitionProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/TableDefinitionProto.java deleted file mode 100644 index 71a50ae..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/TableDefinitionProto.java +++ /dev/null @@ -1,1157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/TableDefinition.proto - -package com.factset.protobuf.stach.v2.table; - -public final class TableDefinitionProto { - private TableDefinitionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TableDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.TableDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The id of the headers table
-     * 
- * - * string header_table_id = 1; - * @return The headerTableId. - */ - java.lang.String getHeaderTableId(); - /** - *
-     * The id of the headers table
-     * 
- * - * string header_table_id = 1; - * @return The bytes for headerTableId. - */ - com.google.protobuf.ByteString - getHeaderTableIdBytes(); - - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - java.util.List - getColumnsList(); - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index); - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - int getColumnsCount(); - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - java.util.List - getColumnsOrBuilderList(); - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder( - int index); - } - /** - *
-   * A table definition
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.TableDefinition} - */ - public static final class TableDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.TableDefinition) - TableDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableDefinition.newBuilder() to construct. - private TableDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableDefinition() { - headerTableId_ = ""; - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableDefinition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableDefinition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - headerTableId_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.TableDefinitionProto.internal_static_factset_protobuf_stach_v2_table_TableDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.TableDefinitionProto.internal_static_factset_protobuf_stach_v2_table_TableDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.class, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder.class); - } - - public static final int HEADER_TABLE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object headerTableId_; - /** - *
-     * The id of the headers table
-     * 
- * - * string header_table_id = 1; - * @return The headerTableId. - */ - @java.lang.Override - public java.lang.String getHeaderTableId() { - java.lang.Object ref = headerTableId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - headerTableId_ = s; - return s; - } - } - /** - *
-     * The id of the headers table
-     * 
- * - * string header_table_id = 1; - * @return The bytes for headerTableId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHeaderTableIdBytes() { - java.lang.Object ref = headerTableId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headerTableId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COLUMNS_FIELD_NUMBER = 2; - private java.util.List columns_; - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - @java.lang.Override - public java.util.List getColumnsList() { - return columns_; - } - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - @java.lang.Override - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - @java.lang.Override - public int getColumnsCount() { - return columns_.size(); - } - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) { - return columns_.get(index); - } - /** - *
-     * The array of column definitions
-     * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder( - int index) { - return columns_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getHeaderTableIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headerTableId_); - } - for (int i = 0; i < columns_.size(); i++) { - output.writeMessage(2, columns_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getHeaderTableIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, headerTableId_); - } - for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, columns_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition other = (com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition) obj; - - if (!getHeaderTableId() - .equals(other.getHeaderTableId())) return false; - if (!getColumnsList() - .equals(other.getColumnsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEADER_TABLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getHeaderTableId().hashCode(); - if (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A table definition
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.TableDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.TableDefinition) - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.TableDefinitionProto.internal_static_factset_protobuf_stach_v2_table_TableDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.TableDefinitionProto.internal_static_factset_protobuf_stach_v2_table_TableDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.class, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - headerTableId_ = ""; - - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.TableDefinitionProto.internal_static_factset_protobuf_stach_v2_table_TableDefinition_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition build() { - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition buildPartial() { - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition result = new com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition(this); - int from_bitField0_ = bitField0_; - result.headerTableId_ = headerTableId_; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition) { - return mergeFrom((com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition other) { - if (other == com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.getDefaultInstance()) return this; - if (!other.getHeaderTableId().isEmpty()) { - headerTableId_ = other.headerTableId_; - onChanged(); - } - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object headerTableId_ = ""; - /** - *
-       * The id of the headers table
-       * 
- * - * string header_table_id = 1; - * @return The headerTableId. - */ - public java.lang.String getHeaderTableId() { - java.lang.Object ref = headerTableId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - headerTableId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The id of the headers table
-       * 
- * - * string header_table_id = 1; - * @return The bytes for headerTableId. - */ - public com.google.protobuf.ByteString - getHeaderTableIdBytes() { - java.lang.Object ref = headerTableId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headerTableId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The id of the headers table
-       * 
- * - * string header_table_id = 1; - * @param value The headerTableId to set. - * @return This builder for chaining. - */ - public Builder setHeaderTableId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - headerTableId_ = value; - onChanged(); - return this; - } - /** - *
-       * The id of the headers table
-       * 
- * - * string header_table_id = 1; - * @return This builder for chaining. - */ - public Builder clearHeaderTableId() { - - headerTableId_ = getDefaultInstance().getHeaderTableId(); - onChanged(); - return this; - } - /** - *
-       * The id of the headers table
-       * 
- * - * string header_table_id = 1; - * @param value The bytes for headerTableId to set. - * @return This builder for chaining. - */ - public Builder setHeaderTableIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - headerTableId_ = value; - onChanged(); - return this; - } - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> columnsBuilder_; - - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder setColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder setColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder addColumns(com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder addColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder addColumns( - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder addColumns( - int index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.getDefaultInstance()); - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.getDefaultInstance()); - } - /** - *
-       * The array of column definitions
-       * 
- * - * repeated .factset.protobuf.stach.v2.table.ColumnDefinition columns = 2; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder, com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.TableDefinition) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.TableDefinition) - private static final com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition(); - } - - public static com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableDefinition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_TableDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_TableDefinition_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1fds/protobuf/stach/v2/table/TableDefin" + - "ition.proto\022\037factset.protobuf.stach.v2.t" + - "able\0322fds/protobuf/stach/v2/table/Column" + - "Definition.proto\"n\n\017TableDefinition\022\027\n\017h" + - "eader_table_id\030\001 \001(\t\022B\n\007columns\030\002 \003(\01321." + - "factset.protobuf.stach.v2.table.ColumnDe" + - "finitionB\241\001\n#com.factset.protobuf.stach." + - "v2.tableB\024TableDefinitionProtoZBgithub.c" + - "om/factset/stachschema-sdks/go/fds/proto" + - "buf/stach/v2/table\252\002\037FactSet.Protobuf.St" + - "ach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_TableDefinition_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_TableDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_TableDefinition_descriptor, - new java.lang.String[] { "HeaderTableId", "Columns", }); - com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/TableProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/TableProto.java deleted file mode 100644 index d21ff2e..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/TableProto.java +++ /dev/null @@ -1,1013 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/Table.proto - -package com.factset.protobuf.stach.v2.table; - -public final class TableProto { - private TableProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TableOrBuilder extends - // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v2.table.Table) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The definition
-     * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - * @return Whether the definition field is set. - */ - boolean hasDefinition(); - /** - *
-     * The definition
-     * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - * @return The definition. - */ - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition getDefinition(); - /** - *
-     * The definition
-     * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder getDefinitionOrBuilder(); - - /** - *
-     * The data
-     * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - *
-     * The data
-     * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - * @return The data. - */ - com.factset.protobuf.stach.v2.table.TableDataProto.TableData getData(); - /** - *
-     * The data
-     * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder getDataOrBuilder(); - } - /** - *
-   * A column organized table
-   * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.Table} - */ - public static final class Table extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.Table) - TableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Table.newBuilder() to construct. - private Table(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Table() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Table(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Table( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder subBuilder = null; - if (definition_ != null) { - subBuilder = definition_.toBuilder(); - } - definition_ = input.readMessage(com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(definition_); - definition_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.factset.protobuf.stach.v2.table.TableDataProto.TableData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.TableProto.internal_static_factset_protobuf_stach_v2_table_Table_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.TableProto.internal_static_factset_protobuf_stach_v2_table_Table_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.TableProto.Table.class, com.factset.protobuf.stach.v2.table.TableProto.Table.Builder.class); - } - - public static final int DEFINITION_FIELD_NUMBER = 1; - private com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition definition_; - /** - *
-     * The definition
-     * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - * @return Whether the definition field is set. - */ - @java.lang.Override - public boolean hasDefinition() { - return definition_ != null; - } - /** - *
-     * The definition
-     * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - * @return The definition. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition getDefinition() { - return definition_ == null ? com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.getDefaultInstance() : definition_; - } - /** - *
-     * The definition
-     * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder getDefinitionOrBuilder() { - return getDefinition(); - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.factset.protobuf.stach.v2.table.TableDataProto.TableData data_; - /** - *
-     * The data
-     * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - *
-     * The data
-     * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - * @return The data. - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData getData() { - return data_ == null ? com.factset.protobuf.stach.v2.table.TableDataProto.TableData.getDefaultInstance() : data_; - } - /** - *
-     * The data
-     * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (definition_ != null) { - output.writeMessage(1, getDefinition()); - } - if (data_ != null) { - output.writeMessage(2, getData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (definition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDefinition()); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.TableProto.Table)) { - return super.equals(obj); - } - com.factset.protobuf.stach.v2.table.TableProto.Table other = (com.factset.protobuf.stach.v2.table.TableProto.Table) obj; - - if (hasDefinition() != other.hasDefinition()) return false; - if (hasDefinition()) { - if (!getDefinition() - .equals(other.getDefinition())) return false; - } - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDefinition()) { - hash = (37 * hash) + DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + getDefinition().hashCode(); - } - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.factset.protobuf.stach.v2.table.TableProto.Table parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.TableProto.Table prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A column organized table
-     * 
- * - * Protobuf type {@code factset.protobuf.stach.v2.table.Table} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.Table) - com.factset.protobuf.stach.v2.table.TableProto.TableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.TableProto.internal_static_factset_protobuf_stach_v2_table_Table_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.TableProto.internal_static_factset_protobuf_stach_v2_table_Table_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.TableProto.Table.class, com.factset.protobuf.stach.v2.table.TableProto.Table.Builder.class); - } - - // Construct using com.factset.protobuf.stach.v2.table.TableProto.Table.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (definitionBuilder_ == null) { - definition_ = null; - } else { - definition_ = null; - definitionBuilder_ = null; - } - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.TableProto.internal_static_factset_protobuf_stach_v2_table_Table_descriptor; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableProto.Table getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.TableProto.Table.getDefaultInstance(); - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableProto.Table build() { - com.factset.protobuf.stach.v2.table.TableProto.Table result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableProto.Table buildPartial() { - com.factset.protobuf.stach.v2.table.TableProto.Table result = new com.factset.protobuf.stach.v2.table.TableProto.Table(this); - if (definitionBuilder_ == null) { - result.definition_ = definition_; - } else { - result.definition_ = definitionBuilder_.build(); - } - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.TableProto.Table) { - return mergeFrom((com.factset.protobuf.stach.v2.table.TableProto.Table)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.TableProto.Table other) { - if (other == com.factset.protobuf.stach.v2.table.TableProto.Table.getDefaultInstance()) return this; - if (other.hasDefinition()) { - mergeDefinition(other.getDefinition()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.factset.protobuf.stach.v2.table.TableProto.Table parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.TableProto.Table) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition definition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder> definitionBuilder_; - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - * @return Whether the definition field is set. - */ - public boolean hasDefinition() { - return definitionBuilder_ != null || definition_ != null; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - * @return The definition. - */ - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition getDefinition() { - if (definitionBuilder_ == null) { - return definition_ == null ? com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.getDefaultInstance() : definition_; - } else { - return definitionBuilder_.getMessage(); - } - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - public Builder setDefinition(com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition value) { - if (definitionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - definition_ = value; - onChanged(); - } else { - definitionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - public Builder setDefinition( - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder builderForValue) { - if (definitionBuilder_ == null) { - definition_ = builderForValue.build(); - onChanged(); - } else { - definitionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - public Builder mergeDefinition(com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition value) { - if (definitionBuilder_ == null) { - if (definition_ != null) { - definition_ = - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.newBuilder(definition_).mergeFrom(value).buildPartial(); - } else { - definition_ = value; - } - onChanged(); - } else { - definitionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - public Builder clearDefinition() { - if (definitionBuilder_ == null) { - definition_ = null; - onChanged(); - } else { - definition_ = null; - definitionBuilder_ = null; - } - - return this; - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder getDefinitionBuilder() { - - onChanged(); - return getDefinitionFieldBuilder().getBuilder(); - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - public com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder getDefinitionOrBuilder() { - if (definitionBuilder_ != null) { - return definitionBuilder_.getMessageOrBuilder(); - } else { - return definition_ == null ? - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.getDefaultInstance() : definition_; - } - } - /** - *
-       * The definition
-       * 
- * - * .factset.protobuf.stach.v2.table.TableDefinition definition = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder> - getDefinitionFieldBuilder() { - if (definitionBuilder_ == null) { - definitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinition.Builder, com.factset.protobuf.stach.v2.table.TableDefinitionProto.TableDefinitionOrBuilder>( - getDefinition(), - getParentForChildren(), - isClean()); - definition_ = null; - } - return definitionBuilder_; - } - - private com.factset.protobuf.stach.v2.table.TableDataProto.TableData data_; - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.TableDataProto.TableData, com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder, com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder> dataBuilder_; - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - * @return Whether the data field is set. - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - * @return The data. - */ - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData getData() { - if (dataBuilder_ == null) { - return data_ == null ? com.factset.protobuf.stach.v2.table.TableDataProto.TableData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - public Builder setData(com.factset.protobuf.stach.v2.table.TableDataProto.TableData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - public Builder setData( - com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - public Builder mergeData(com.factset.protobuf.stach.v2.table.TableDataProto.TableData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - com.factset.protobuf.stach.v2.table.TableDataProto.TableData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - public com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - public com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - com.factset.protobuf.stach.v2.table.TableDataProto.TableData.getDefaultInstance() : data_; - } - } - /** - *
-       * The data
-       * 
- * - * .factset.protobuf.stach.v2.table.TableData data = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.TableDataProto.TableData, com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder, com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.TableDataProto.TableData, com.factset.protobuf.stach.v2.table.TableDataProto.TableData.Builder, com.factset.protobuf.stach.v2.table.TableDataProto.TableDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.Table) - } - - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.Table) - private static final com.factset.protobuf.stach.v2.table.TableProto.Table DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.TableProto.Table(); - } - - public static com.factset.protobuf.stach.v2.table.TableProto.Table getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Table parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Table(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.factset.protobuf.stach.v2.table.TableProto.Table getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_Table_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_Table_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'fds/protobuf/stach/v2/table/Table.prot" + - "o\022\037factset.protobuf.stach.v2.table\032+fds/" + - "protobuf/stach/v2/table/TableData.proto\032" + - "1fds/protobuf/stach/v2/table/TableDefini" + - "tion.proto\"\207\001\n\005Table\022D\n\ndefinition\030\001 \001(\013" + - "20.factset.protobuf.stach.v2.table.Table" + - "Definition\0228\n\004data\030\002 \001(\0132*.factset.proto" + - "buf.stach.v2.table.TableDataB\227\001\n#com.fac" + - "tset.protobuf.stach.v2.tableB\nTableProto" + - "ZBgithub.com/factset/stachschema-sdks/go" + - "/fds/protobuf/stach/v2/table\252\002\037FactSet.P" + - "rotobuf.Stach.V2.Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.factset.protobuf.stach.v2.table.TableDataProto.getDescriptor(), - com.factset.protobuf.stach.v2.table.TableDefinitionProto.getDescriptor(), - }); - internal_static_factset_protobuf_stach_v2_table_Table_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_factset_protobuf_stach_v2_table_Table_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_factset_protobuf_stach_v2_table_Table_descriptor, - new java.lang.String[] { "Definition", "Data", }); - com.factset.protobuf.stach.v2.table.TableDataProto.getDescriptor(); - com.factset.protobuf.stach.v2.table.TableDefinitionProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v2/table/VerticalAlignmentProto.java b/java/src/main/java/com/factset/protobuf/stach/v2/table/VerticalAlignmentProto.java deleted file mode 100644 index fe14e5c..0000000 --- a/java/src/main/java/com/factset/protobuf/stach/v2/table/VerticalAlignmentProto.java +++ /dev/null @@ -1,205 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fds/protobuf/stach/v2/table/VerticalAlignment.proto - -package com.factset.protobuf.stach.v2.table; - -public final class VerticalAlignmentProto { - private VerticalAlignmentProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * A vertical alignment
-   * 
- * - * Protobuf enum {@code factset.protobuf.stach.v2.table.VerticalAlignment} - */ - public enum VerticalAlignment - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * This value should never be used, but exists to ensure that a value is specified
-     * 
- * - * UNKNOWN_VALIGN = 0; - */ - UNKNOWN_VALIGN(0), - /** - *
-     * Value is vertically aligned to the top of the cell
-     * 
- * - * TOP = 1; - */ - TOP(1), - /** - *
-     * Value is vertically aligned to the middle of the cell
-     * 
- * - * MIDDLE = 2; - */ - MIDDLE(2), - /** - *
-     * Value is vertically aligned to the bottom of the cell
-     * 
- * - * BOTTOM = 3; - */ - BOTTOM(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * This value should never be used, but exists to ensure that a value is specified
-     * 
- * - * UNKNOWN_VALIGN = 0; - */ - public static final int UNKNOWN_VALIGN_VALUE = 0; - /** - *
-     * Value is vertically aligned to the top of the cell
-     * 
- * - * TOP = 1; - */ - public static final int TOP_VALUE = 1; - /** - *
-     * Value is vertically aligned to the middle of the cell
-     * 
- * - * MIDDLE = 2; - */ - public static final int MIDDLE_VALUE = 2; - /** - *
-     * Value is vertically aligned to the bottom of the cell
-     * 
- * - * BOTTOM = 3; - */ - public static final int BOTTOM_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static VerticalAlignment valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static VerticalAlignment forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_VALIGN; - case 1: return TOP; - case 2: return MIDDLE; - case 3: return BOTTOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - VerticalAlignment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VerticalAlignment findValueByNumber(int number) { - return VerticalAlignment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.factset.protobuf.stach.v2.table.VerticalAlignmentProto.getDescriptor().getEnumTypes().get(0); - } - - private static final VerticalAlignment[] VALUES = values(); - - public static VerticalAlignment valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private VerticalAlignment(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:factset.protobuf.stach.v2.table.VerticalAlignment) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3fds/protobuf/stach/v2/table/VerticalAl" + - "ignment.proto\022\037factset.protobuf.stach.v2" + - ".table*H\n\021VerticalAlignment\022\022\n\016UNKNOWN_V" + - "ALIGN\020\000\022\007\n\003TOP\020\001\022\n\n\006MIDDLE\020\002\022\n\n\006BOTTOM\020\003" + - "B\243\001\n#com.factset.protobuf.stach.v2.table" + - "B\026VerticalAlignmentProtoZBgithub.com/fac" + - "tset/stachschema-sdks/go/fds/protobuf/st" + - "ach/v2/table\252\002\037FactSet.Protobuf.Stach.V2" + - ".Tableb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java/src/main/java/com/factset/protobuf/stach/v3/ColumnProto.java b/java/src/main/java/com/factset/protobuf/stach/v3/ColumnProto.java new file mode 100644 index 0000000..35e0da5 --- /dev/null +++ b/java/src/main/java/com/factset/protobuf/stach/v3/ColumnProto.java @@ -0,0 +1,1100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fds/protobuf/stach/v3/Column.proto + +package com.factset.protobuf.stach.v3; + +public final class ColumnProto { + private ColumnProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.Column) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *The type that defines a higher level contextual type.
+     *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+     *Required.
+     * 
+ * + * string contextual_type = 1; + * @return The contextualType. + */ + java.lang.String getContextualType(); + /** + *
+     *The type that defines a higher level contextual type.
+     *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+     *Required.
+     * 
+ * + * string contextual_type = 1; + * @return The bytes for contextualType. + */ + com.google.protobuf.ByteString + getContextualTypeBytes(); + + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + int getCustomMetadataCount(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + boolean containsCustomMetadata( + java.lang.String key); + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCustomMetadata(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + java.util.Map + getCustomMetadataMap(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key); + } + /** + *
+   *A set of metadata for a table column.
+   * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Column} + */ + public static final class Column extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Column) + ColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use Column.newBuilder() to construct. + private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Column() { + contextualType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Column(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Column( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + contextualType_ = s; + break; + } + case 802: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + customMetadata__ = input.readMessage( + CustomMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + customMetadata_.getMutableMap().put( + customMetadata__.getKey(), customMetadata__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.ColumnProto.internal_static_factset_protobuf_stach_v3_Column_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.ColumnProto.internal_static_factset_protobuf_stach_v3_Column_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.ColumnProto.Column.class, com.factset.protobuf.stach.v3.ColumnProto.Column.Builder.class); + } + + public static final int CONTEXTUAL_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object contextualType_; + /** + *
+     *The type that defines a higher level contextual type.
+     *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+     *Required.
+     * 
+ * + * string contextual_type = 1; + * @return The contextualType. + */ + @java.lang.Override + public java.lang.String getContextualType() { + java.lang.Object ref = contextualType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextualType_ = s; + return s; + } + } + /** + *
+     *The type that defines a higher level contextual type.
+     *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+     *Required.
+     * 
+ * + * string contextual_type = 1; + * @return The bytes for contextualType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextualTypeBytes() { + java.lang.Object ref = contextualType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextualType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_METADATA_FIELD_NUMBER = 100; + private static final class CustomMetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.factset.protobuf.stach.v3.ColumnProto.internal_static_factset_protobuf_stach_v3_Column_CustomMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getContextualTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextualType_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCustomMetadata(), + CustomMetadataDefaultEntryHolder.defaultEntry, + 100); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getContextualTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contextualType_); + } + for (java.util.Map.Entry entry + : internalGetCustomMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + customMetadata__ = CustomMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, customMetadata__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.ColumnProto.Column)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.ColumnProto.Column other = (com.factset.protobuf.stach.v3.ColumnProto.Column) obj; + + if (!getContextualType() + .equals(other.getContextualType())) return false; + if (!internalGetCustomMetadata().equals( + other.internalGetCustomMetadata())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXTUAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getContextualType().hashCode(); + if (!internalGetCustomMetadata().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ColumnProto.Column parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.ColumnProto.Column prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     *A set of metadata for a table column.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Column} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Column) + com.factset.protobuf.stach.v3.ColumnProto.ColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.ColumnProto.internal_static_factset_protobuf_stach_v3_Column_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 100: + return internalGetMutableCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.ColumnProto.internal_static_factset_protobuf_stach_v3_Column_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.ColumnProto.Column.class, com.factset.protobuf.stach.v3.ColumnProto.Column.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.ColumnProto.Column.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + contextualType_ = ""; + + internalGetMutableCustomMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.ColumnProto.internal_static_factset_protobuf_stach_v3_Column_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ColumnProto.Column getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.ColumnProto.Column.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ColumnProto.Column build() { + com.factset.protobuf.stach.v3.ColumnProto.Column result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ColumnProto.Column buildPartial() { + com.factset.protobuf.stach.v3.ColumnProto.Column result = new com.factset.protobuf.stach.v3.ColumnProto.Column(this); + int from_bitField0_ = bitField0_; + result.contextualType_ = contextualType_; + result.customMetadata_ = internalGetCustomMetadata(); + result.customMetadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.ColumnProto.Column) { + return mergeFrom((com.factset.protobuf.stach.v3.ColumnProto.Column)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.ColumnProto.Column other) { + if (other == com.factset.protobuf.stach.v3.ColumnProto.Column.getDefaultInstance()) return this; + if (!other.getContextualType().isEmpty()) { + contextualType_ = other.contextualType_; + onChanged(); + } + internalGetMutableCustomMetadata().mergeFrom( + other.internalGetCustomMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.ColumnProto.Column parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.ColumnProto.Column) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object contextualType_ = ""; + /** + *
+       *The type that defines a higher level contextual type.
+       *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+       *Required.
+       * 
+ * + * string contextual_type = 1; + * @return The contextualType. + */ + public java.lang.String getContextualType() { + java.lang.Object ref = contextualType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextualType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *The type that defines a higher level contextual type.
+       *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+       *Required.
+       * 
+ * + * string contextual_type = 1; + * @return The bytes for contextualType. + */ + public com.google.protobuf.ByteString + getContextualTypeBytes() { + java.lang.Object ref = contextualType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextualType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *The type that defines a higher level contextual type.
+       *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+       *Required.
+       * 
+ * + * string contextual_type = 1; + * @param value The contextualType to set. + * @return This builder for chaining. + */ + public Builder setContextualType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contextualType_ = value; + onChanged(); + return this; + } + /** + *
+       *The type that defines a higher level contextual type.
+       *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+       *Required.
+       * 
+ * + * string contextual_type = 1; + * @return This builder for chaining. + */ + public Builder clearContextualType() { + + contextualType_ = getDefaultInstance().getContextualType(); + onChanged(); + return this; + } + /** + *
+       *The type that defines a higher level contextual type.
+       *E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message).
+       *Required.
+       * 
+ * + * string contextual_type = 1; + * @param value The bytes for contextualType to set. + * @return This builder for chaining. + */ + public Builder setContextualTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contextualType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + private com.google.protobuf.MapField + internalGetMutableCustomMetadata() { + onChanged();; + if (customMetadata_ == null) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + if (!customMetadata_.isMutable()) { + customMetadata_ = customMetadata_.copy(); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomMetadata() { + internalGetMutableCustomMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder removeCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomMetadata() { + return internalGetMutableCustomMetadata().getMutableMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + public Builder putCustomMetadata( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder putAllCustomMetadata( + java.util.Map values) { + internalGetMutableCustomMetadata().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Column) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Column) + private static final com.factset.protobuf.stach.v3.ColumnProto.Column DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.ColumnProto.Column(); + } + + public static com.factset.protobuf.stach.v3.ColumnProto.Column getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Column parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Column(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ColumnProto.Column getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Column_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Column_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Column_CustomMetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Column_CustomMetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"fds/protobuf/stach/v3/Column.proto\022\031fa" + + "ctset.protobuf.stach.v3\032(fds/protobuf/st" + + "ach/v3/MetadataItem.proto\"\321\001\n\006Column\022\027\n\017" + + "contextual_type\030\001 \001(\t\022N\n\017custom_metadata" + + "\030d \003(\01325.factset.protobuf.stach.v3.Colum" + + "n.CustomMetadataEntry\032^\n\023CustomMetadataE" + + "ntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.facts" + + "et.protobuf.stach.v3.MetadataItem:\0028\001B\206\001" + + "\n\035com.factset.protobuf.stach.v3B\013ColumnP" + + "rotoZ - * The id; used for referring to a row internal to a package + *The higher level contextual type. + *E.g. 'email', or 'id32'. + *Required. * * - * string id = 1; - * @return The id. + * string contextual_type = 1; + * @return The contextualType. */ - java.lang.String getId(); + java.lang.String getContextualType(); /** *
-     * The id; used for referring to a row internal to a package
+     *The higher level contextual type.
+     *E.g. 'email', or 'id32'.
+     *Required.
      * 
* - * string id = 1; - * @return The bytes for id. + * string contextual_type = 1; + * @return The bytes for contextualType. */ com.google.protobuf.ByteString - getIdBytes(); + getContextualTypeBytes(); /** *
-     * The data format; overrides the `ColumnDefinition.format`
+     *The value.
+     *Required.
      * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return Whether the format field is set. + * .google.protobuf.Value value = 2; + * @return Whether the value field is set. */ - boolean hasFormat(); + boolean hasValue(); /** *
-     * The data format; overrides the `ColumnDefinition.format`
+     *The value.
+     *Required.
      * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return The format. + * .google.protobuf.Value value = 2; + * @return The value. */ - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat(); + com.google.protobuf.Value getValue(); /** *
-     * The data format; overrides the `ColumnDefinition.format`
+     *The value.
+     *Required.
      * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder(); + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); } /** *
-   * A definition of a row
-   * Overrides the column definition
+   *A custom metadata item.
    * 
* - * Protobuf type {@code factset.protobuf.stach.v2.table.RowDefinition} + * Protobuf type {@code factset.protobuf.stach.v3.MetadataItem} */ - public static final class RowDefinition extends + public static final class MetadataItem extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v2.table.RowDefinition) - RowDefinitionOrBuilder { + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.MetadataItem) + MetadataItemOrBuilder { private static final long serialVersionUID = 0L; - // Use RowDefinition.newBuilder() to construct. - private RowDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MetadataItem.newBuilder() to construct. + private MetadataItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RowDefinition() { - id_ = ""; + private MetadataItem() { + contextualType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RowDefinition(); + return new MetadataItem(); } @java.lang.Override @@ -98,7 +104,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private RowDefinition( + private MetadataItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -119,18 +125,18 @@ private RowDefinition( case 10: { java.lang.String s = input.readStringRequireUtf8(); - id_ = s; + contextualType_ = s; break; } case 18: { - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder subBuilder = null; - if (format_ != null) { - subBuilder = format_.toBuilder(); + com.google.protobuf.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); } - format_ = input.readMessage(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.parser(), extensionRegistry); + value_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(format_); - format_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); } break; @@ -156,99 +162,106 @@ private RowDefinition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.factset.protobuf.stach.v2.table.RowDefinitionProto.internal_static_factset_protobuf_stach_v2_table_RowDefinition_descriptor; + return com.factset.protobuf.stach.v3.MetadataItemProto.internal_static_factset_protobuf_stach_v3_MetadataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.RowDefinitionProto.internal_static_factset_protobuf_stach_v2_table_RowDefinition_fieldAccessorTable + return com.factset.protobuf.stach.v3.MetadataItemProto.internal_static_factset_protobuf_stach_v3_MetadataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.class, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder.class); + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.class, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.Builder.class); } - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + public static final int CONTEXTUAL_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object contextualType_; /** *
-     * The id; used for referring to a row internal to a package
+     *The higher level contextual type.
+     *E.g. 'email', or 'id32'.
+     *Required.
      * 
* - * string id = 1; - * @return The id. + * string contextual_type = 1; + * @return The contextualType. */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getContextualType() { + java.lang.Object ref = contextualType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + contextualType_ = s; return s; } } /** *
-     * The id; used for referring to a row internal to a package
+     *The higher level contextual type.
+     *E.g. 'email', or 'id32'.
+     *Required.
      * 
* - * string id = 1; - * @return The bytes for id. + * string contextual_type = 1; + * @return The bytes for contextualType. */ @java.lang.Override public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getContextualTypeBytes() { + java.lang.Object ref = contextualType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + contextualType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int FORMAT_FIELD_NUMBER = 2; - private com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat format_; + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value value_; /** *
-     * The data format; overrides the `ColumnDefinition.format`
+     *The value.
+     *Required.
      * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return Whether the format field is set. + * .google.protobuf.Value value = 2; + * @return Whether the value field is set. */ @java.lang.Override - public boolean hasFormat() { - return format_ != null; + public boolean hasValue() { + return value_ != null; } /** *
-     * The data format; overrides the `ColumnDefinition.format`
+     *The value.
+     *Required.
      * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return The format. + * .google.protobuf.Value value = 2; + * @return The value. */ @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat() { - return format_ == null ? com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } /** *
-     * The data format; overrides the `ColumnDefinition.format`
+     *The value.
+     *Required.
      * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ @java.lang.Override - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder() { - return getFormat(); + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return getValue(); } private byte memoizedIsInitialized = -1; @@ -265,11 +278,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + if (!getContextualTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextualType_); } - if (format_ != null) { - output.writeMessage(2, getFormat()); + if (value_ != null) { + output.writeMessage(2, getValue()); } unknownFields.writeTo(output); } @@ -280,12 +293,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + if (!getContextualTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contextualType_); } - if (format_ != null) { + if (value_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFormat()); + .computeMessageSize(2, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,17 +310,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition)) { + if (!(obj instanceof com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem)) { return super.equals(obj); } - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition other = (com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition) obj; + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem other = (com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem) obj; - if (!getId() - .equals(other.getId())) return false; - if (hasFormat() != other.hasFormat()) return false; - if (hasFormat()) { - if (!getFormat() - .equals(other.getFormat())) return false; + if (!getContextualType() + .equals(other.getContextualType())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,80 +333,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasFormat()) { - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); + hash = (37 * hash) + CONTEXTUAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getContextualType().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom(byte[] data) + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom(java.io.InputStream input) + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseDelimitedFrom(java.io.InputStream input) + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseDelimitedFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parseFrom( + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -406,7 +419,7 @@ public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefiniti public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition prototype) { + public static Builder newBuilder(com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -423,30 +436,29 @@ protected Builder newBuilderForType( } /** *
-     * A definition of a row
-     * Overrides the column definition
+     *A custom metadata item.
      * 
* - * Protobuf type {@code factset.protobuf.stach.v2.table.RowDefinition} + * Protobuf type {@code factset.protobuf.stach.v3.MetadataItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v2.table.RowDefinition) - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinitionOrBuilder { + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.MetadataItem) + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.factset.protobuf.stach.v2.table.RowDefinitionProto.internal_static_factset_protobuf_stach_v2_table_RowDefinition_descriptor; + return com.factset.protobuf.stach.v3.MetadataItemProto.internal_static_factset_protobuf_stach_v3_MetadataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.factset.protobuf.stach.v2.table.RowDefinitionProto.internal_static_factset_protobuf_stach_v2_table_RowDefinition_fieldAccessorTable + return com.factset.protobuf.stach.v3.MetadataItemProto.internal_static_factset_protobuf_stach_v3_MetadataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.class, com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.Builder.class); + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.class, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.Builder.class); } - // Construct using com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.newBuilder() + // Construct using com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -464,13 +476,13 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - id_ = ""; + contextualType_ = ""; - if (formatBuilder_ == null) { - format_ = null; + if (valueBuilder_ == null) { + value_ = null; } else { - format_ = null; - formatBuilder_ = null; + value_ = null; + valueBuilder_ = null; } return this; } @@ -478,17 +490,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.factset.protobuf.stach.v2.table.RowDefinitionProto.internal_static_factset_protobuf_stach_v2_table_RowDefinition_descriptor; + return com.factset.protobuf.stach.v3.MetadataItemProto.internal_static_factset_protobuf_stach_v3_MetadataItem_descriptor; } @java.lang.Override - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getDefaultInstanceForType() { - return com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.getDefaultInstance(); + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.getDefaultInstance(); } @java.lang.Override - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition build() { - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition result = buildPartial(); + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem build() { + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -496,13 +508,13 @@ public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition buil } @java.lang.Override - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition buildPartial() { - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition result = new com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition(this); - result.id_ = id_; - if (formatBuilder_ == null) { - result.format_ = format_; + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem buildPartial() { + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem result = new com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem(this); + result.contextualType_ = contextualType_; + if (valueBuilder_ == null) { + result.value_ = value_; } else { - result.format_ = formatBuilder_.build(); + result.value_ = valueBuilder_.build(); } onBuilt(); return result; @@ -542,22 +554,22 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition) { - return mergeFrom((com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition)other); + if (other instanceof com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem) { + return mergeFrom((com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition other) { - if (other == com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; + public Builder mergeFrom(com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem other) { + if (other == com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.getDefaultInstance()) return this; + if (!other.getContextualType().isEmpty()) { + contextualType_ = other.contextualType_; onChanged(); } - if (other.hasFormat()) { - mergeFormat(other.getFormat()); + if (other.hasValue()) { + mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -574,11 +586,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition parsedMessage = null; + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition) e.getUnfinishedMessage(); + parsedMessage = (com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -588,22 +600,24 @@ public Builder mergeFrom( return this; } - private java.lang.Object id_ = ""; + private java.lang.Object contextualType_ = ""; /** *
-       * The id; used for referring to a row internal to a package
+       *The higher level contextual type.
+       *E.g. 'email', or 'id32'.
+       *Required.
        * 
* - * string id = 1; - * @return The id. + * string contextual_type = 1; + * @return The contextualType. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getContextualType() { + java.lang.Object ref = contextualType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + contextualType_ = s; return s; } else { return (java.lang.String) ref; @@ -611,20 +625,22 @@ public java.lang.String getId() { } /** *
-       * The id; used for referring to a row internal to a package
+       *The higher level contextual type.
+       *E.g. 'email', or 'id32'.
+       *Required.
        * 
* - * string id = 1; - * @return The bytes for id. + * string contextual_type = 1; + * @return The bytes for contextualType. */ public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getContextualTypeBytes() { + java.lang.Object ref = contextualType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + contextualType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -632,211 +648,226 @@ public java.lang.String getId() { } /** *
-       * The id; used for referring to a row internal to a package
+       *The higher level contextual type.
+       *E.g. 'email', or 'id32'.
+       *Required.
        * 
* - * string id = 1; - * @param value The id to set. + * string contextual_type = 1; + * @param value The contextualType to set. * @return This builder for chaining. */ - public Builder setId( + public Builder setContextualType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + contextualType_ = value; onChanged(); return this; } /** *
-       * The id; used for referring to a row internal to a package
+       *The higher level contextual type.
+       *E.g. 'email', or 'id32'.
+       *Required.
        * 
* - * string id = 1; + * string contextual_type = 1; * @return This builder for chaining. */ - public Builder clearId() { + public Builder clearContextualType() { - id_ = getDefaultInstance().getId(); + contextualType_ = getDefaultInstance().getContextualType(); onChanged(); return this; } /** *
-       * The id; used for referring to a row internal to a package
+       *The higher level contextual type.
+       *E.g. 'email', or 'id32'.
+       *Required.
        * 
* - * string id = 1; - * @param value The bytes for id to set. + * string contextual_type = 1; + * @param value The bytes for contextualType to set. * @return This builder for chaining. */ - public Builder setIdBytes( + public Builder setContextualTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + contextualType_ = value; onChanged(); return this; } - private com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat format_; + private com.google.protobuf.Value value_; private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder> formatBuilder_; + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valueBuilder_; /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return Whether the format field is set. + * .google.protobuf.Value value = 2; + * @return Whether the value field is set. */ - public boolean hasFormat() { - return formatBuilder_ != null || format_ != null; + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; - * @return The format. + * .google.protobuf.Value value = 2; + * @return The value. */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat getFormat() { - if (formatBuilder_ == null) { - return format_ == null ? com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } else { - return formatBuilder_.getMessage(); + return valueBuilder_.getMessage(); } } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - public Builder setFormat(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat value) { - if (formatBuilder_ == null) { + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - format_ = value; + value_ = value; onChanged(); } else { - formatBuilder_.setMessage(value); + valueBuilder_.setMessage(value); } return this; } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - public Builder setFormat( - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder builderForValue) { - if (formatBuilder_ == null) { - format_ = builderForValue.build(); + public Builder setValue( + com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); onChanged(); } else { - formatBuilder_.setMessage(builderForValue.build()); + valueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - public Builder mergeFormat(com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat value) { - if (formatBuilder_ == null) { - if (format_ != null) { - format_ = - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.newBuilder(format_).mergeFrom(value).buildPartial(); + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { - format_ = value; + value_ = value; } onChanged(); } else { - formatBuilder_.mergeFrom(value); + valueBuilder_.mergeFrom(value); } return this; } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - public Builder clearFormat() { - if (formatBuilder_ == null) { - format_ = null; + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; onChanged(); } else { - format_ = null; - formatBuilder_ = null; + value_ = null; + valueBuilder_ = null; } return this; } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder getFormatBuilder() { + public com.google.protobuf.Value.Builder getValueBuilder() { onChanged(); - return getFormatFieldBuilder().getBuilder(); + return getValueFieldBuilder().getBuilder(); } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ - public com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder getFormatOrBuilder() { - if (formatBuilder_ != null) { - return formatBuilder_.getMessageOrBuilder(); + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); } else { - return format_ == null ? - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.getDefaultInstance() : format_; + return value_ == null ? + com.google.protobuf.Value.getDefaultInstance() : value_; } } /** *
-       * The data format; overrides the `ColumnDefinition.format`
+       *The value.
+       *Required.
        * 
* - * .factset.protobuf.stach.v2.table.DataFormat format = 2; + * .google.protobuf.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder> - getFormatFieldBuilder() { - if (formatBuilder_ == null) { - formatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormat.Builder, com.factset.protobuf.stach.v2.table.DataFormatProto.DataFormatOrBuilder>( - getFormat(), + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); - format_ = null; + value_ = null; } - return formatBuilder_; + return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -851,51 +882,51 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v2.table.RowDefinition) + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.MetadataItem) } - // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.RowDefinition) - private static final com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.MetadataItem) + private static final com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition(); + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem(); } - public static com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getDefaultInstance() { + public static com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RowDefinition parsePartialFrom( + public MetadataItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RowDefinition(input, extensionRegistry); + return new MetadataItem(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getDefaultInstanceForType() { + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_factset_protobuf_stach_v2_table_RowDefinition_descriptor; + internal_static_factset_protobuf_stach_v3_MetadataItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_factset_protobuf_stach_v2_table_RowDefinition_fieldAccessorTable; + internal_static_factset_protobuf_stach_v3_MetadataItem_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -905,29 +936,28 @@ public com.factset.protobuf.stach.v2.table.RowDefinitionProto.RowDefinition getD descriptor; static { java.lang.String[] descriptorData = { - "\n/fds/protobuf/stach/v2/table/RowDefinit" + - "ion.proto\022\037factset.protobuf.stach.v2.tab" + - "le\032,fds/protobuf/stach/v2/table/DataForm" + - "at.proto\"X\n\rRowDefinition\022\n\n\002id\030\001 \001(\t\022;\n" + - "\006format\030\002 \001(\0132+.factset.protobuf.stach.v" + - "2.table.DataFormatB\237\001\n#com.factset.proto" + - "buf.stach.v2.tableB\022RowDefinitionProtoZB" + - "github.com/factset/stachschema-sdks/go/f" + - "ds/protobuf/stach/v2/table\252\002\037FactSet.Pro" + - "tobuf.Stach.V2.Tableb\006proto3" + "\n(fds/protobuf/stach/v3/MetadataItem.pro" + + "to\022\031factset.protobuf.stach.v3\032\034google/pr" + + "otobuf/struct.proto\"N\n\014MetadataItem\022\027\n\017c" + + "ontextual_type\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" + + "ogle.protobuf.ValueB\214\001\n\035com.factset.prot" + + "obuf.stach.v3B\021MetadataItemProtoZ + *The version of the schema. + *Required. + * + * + * string version = 1; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+     *The version of the schema.
+     *Required.
+     * 
+ * + * string version = 1; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     *The name of the table.
+     *Optional.
+     * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     *The name of the table.
+     *Optional.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + java.util.List + getColumnsList(); + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column getColumns(int index); + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + int getColumnsCount(); + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + java.util.List + getColumnsOrBuilderList(); + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder getColumnsOrBuilder( + int index); + + /** + *
+     *The primary table metadata.
+     *Required.
+     * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + * @return Whether the table field is set. + */ + boolean hasTable(); + /** + *
+     *The primary table metadata.
+     *Required.
+     * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + * @return The table. + */ + com.factset.protobuf.stach.v3.TableProto.Table getTable(); + /** + *
+     *The primary table metadata.
+     *Required.
+     * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + com.factset.protobuf.stach.v3.TableProto.TableOrBuilder getTableOrBuilder(); + + /** + *
+     *The multi-level headers table.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + * @return Whether the multiLevelHeadersTable field is set. + */ + boolean hasMultiLevelHeadersTable(); + /** + *
+     *The multi-level headers table.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + * @return The multiLevelHeadersTable. + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable getMultiLevelHeadersTable(); + /** + *
+     *The multi-level headers table.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder getMultiLevelHeadersTableOrBuilder(); + + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + java.util.List + getViewsList(); + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + com.factset.protobuf.stach.v3.ViewsProto.Views.View getViews(int index); + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + int getViewsCount(); + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + java.util.List + getViewsOrBuilderList(); + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder getViewsOrBuilder( + int index); + + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + java.util.List + getHeaderRowsList(); + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow getHeaderRows(int index); + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + int getHeaderRowsCount(); + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + java.util.List + getHeaderRowsOrBuilderList(); + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder getHeaderRowsOrBuilder( + int index); + + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + java.util.List + getRowsList(); + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + com.google.protobuf.Struct getRows(int index); + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + int getRowsCount(); + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + java.util.List + getRowsOrBuilderList(); + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + com.google.protobuf.StructOrBuilder getRowsOrBuilder( + int index); + } + /** + *
+   *A row-organized table.
+   *Used for JSON-encoding a table.
+   * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable} + */ + public static final class RowOrganizedTable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.RowOrganizedTable) + RowOrganizedTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use RowOrganizedTable.newBuilder() to construct. + private RowOrganizedTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RowOrganizedTable() { + version_ = ""; + name_ = ""; + columns_ = java.util.Collections.emptyList(); + views_ = java.util.Collections.emptyList(); + headerRows_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RowOrganizedTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RowOrganizedTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.parser(), extensionRegistry)); + break; + } + case 34: { + com.factset.protobuf.stach.v3.TableProto.Table.Builder subBuilder = null; + if (table_ != null) { + subBuilder = table_.toBuilder(); + } + table_ = input.readMessage(com.factset.protobuf.stach.v3.TableProto.Table.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(table_); + table_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder subBuilder = null; + if (multiLevelHeadersTable_ != null) { + subBuilder = multiLevelHeadersTable_.toBuilder(); + } + multiLevelHeadersTable_ = input.readMessage(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(multiLevelHeadersTable_); + multiLevelHeadersTable_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + views_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + views_.add( + input.readMessage(com.factset.protobuf.stach.v3.ViewsProto.Views.View.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + headerRows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + headerRows_.add( + input.readMessage(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + rows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + rows_.add( + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + views_ = java.util.Collections.unmodifiableList(views_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + headerRows_ = java.util.Collections.unmodifiableList(headerRows_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder.class); + } + + public interface ColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.RowOrganizedTable.Column) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The name of the column.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+       *The name of the column.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       *Whether the column can contains NULLs or not.
+       *Default is `false`.
+       *Required.
+       * 
+ * + * bool forbid_nulls = 2; + * @return The forbidNulls. + */ + boolean getForbidNulls(); + + /** + *
+       *The contextual type.
+       *Required.
+       * 
+ * + * string contextual_type = 3; + * @return The contextualType. + */ + java.lang.String getContextualType(); + /** + *
+       *The contextual type.
+       *Required.
+       * 
+ * + * string contextual_type = 3; + * @return The bytes for contextualType. + */ + com.google.protobuf.ByteString + getContextualTypeBytes(); + + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + int getCustomMetadataCount(); + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + boolean containsCustomMetadata( + java.lang.String key); + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCustomMetadata(); + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + java.util.Map + getCustomMetadataMap(); + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue); + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key); + } + /** + *
+     *A row-organized column.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable.Column} + */ + public static final class Column extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.RowOrganizedTable.Column) + ColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use Column.newBuilder() to construct. + private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Column() { + name_ = ""; + contextualType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Column(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Column( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + + forbidNulls_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + contextualType_ = s; + break; + } + case 802: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + customMetadata__ = input.readMessage( + CustomMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + customMetadata_.getMutableMap().put( + customMetadata__.getKey(), customMetadata__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       *The name of the column.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+       *The name of the column.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORBID_NULLS_FIELD_NUMBER = 2; + private boolean forbidNulls_; + /** + *
+       *Whether the column can contains NULLs or not.
+       *Default is `false`.
+       *Required.
+       * 
+ * + * bool forbid_nulls = 2; + * @return The forbidNulls. + */ + @java.lang.Override + public boolean getForbidNulls() { + return forbidNulls_; + } + + public static final int CONTEXTUAL_TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object contextualType_; + /** + *
+       *The contextual type.
+       *Required.
+       * 
+ * + * string contextual_type = 3; + * @return The contextualType. + */ + @java.lang.Override + public java.lang.String getContextualType() { + java.lang.Object ref = contextualType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextualType_ = s; + return s; + } + } + /** + *
+       *The contextual type.
+       *Required.
+       * 
+ * + * string contextual_type = 3; + * @return The bytes for contextualType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextualTypeBytes() { + java.lang.Object ref = contextualType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextualType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_METADATA_FIELD_NUMBER = 100; + private static final class CustomMetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_CustomMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (forbidNulls_ != false) { + output.writeBool(2, forbidNulls_); + } + if (!getContextualTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contextualType_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCustomMetadata(), + CustomMetadataDefaultEntryHolder.defaultEntry, + 100); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (forbidNulls_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, forbidNulls_); + } + if (!getContextualTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contextualType_); + } + for (java.util.Map.Entry entry + : internalGetCustomMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + customMetadata__ = CustomMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, customMetadata__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column other = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getForbidNulls() + != other.getForbidNulls()) return false; + if (!getContextualType() + .equals(other.getContextualType())) return false; + if (!internalGetCustomMetadata().equals( + other.internalGetCustomMetadata())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORBID_NULLS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForbidNulls()); + hash = (37 * hash) + CONTEXTUAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getContextualType().hashCode(); + if (!internalGetCustomMetadata().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A row-organized column.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable.Column} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.RowOrganizedTable.Column) + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 100: + return internalGetMutableCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + forbidNulls_ = false; + + contextualType_ = ""; + + internalGetMutableCustomMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column build() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column buildPartial() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column result = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.forbidNulls_ = forbidNulls_; + result.contextualType_ = contextualType_; + result.customMetadata_ = internalGetCustomMetadata(); + result.customMetadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column) { + return mergeFrom((com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column other) { + if (other == com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getForbidNulls() != false) { + setForbidNulls(other.getForbidNulls()); + } + if (!other.getContextualType().isEmpty()) { + contextualType_ = other.contextualType_; + onChanged(); + } + internalGetMutableCustomMetadata().mergeFrom( + other.internalGetCustomMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+         *The name of the column.
+         *Required.
+         * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the column.
+         *Required.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the column.
+         *Required.
+         * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the column.
+         *Required.
+         * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         *The name of the column.
+         *Required.
+         * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean forbidNulls_ ; + /** + *
+         *Whether the column can contains NULLs or not.
+         *Default is `false`.
+         *Required.
+         * 
+ * + * bool forbid_nulls = 2; + * @return The forbidNulls. + */ + @java.lang.Override + public boolean getForbidNulls() { + return forbidNulls_; + } + /** + *
+         *Whether the column can contains NULLs or not.
+         *Default is `false`.
+         *Required.
+         * 
+ * + * bool forbid_nulls = 2; + * @param value The forbidNulls to set. + * @return This builder for chaining. + */ + public Builder setForbidNulls(boolean value) { + + forbidNulls_ = value; + onChanged(); + return this; + } + /** + *
+         *Whether the column can contains NULLs or not.
+         *Default is `false`.
+         *Required.
+         * 
+ * + * bool forbid_nulls = 2; + * @return This builder for chaining. + */ + public Builder clearForbidNulls() { + + forbidNulls_ = false; + onChanged(); + return this; + } + + private java.lang.Object contextualType_ = ""; + /** + *
+         *The contextual type.
+         *Required.
+         * 
+ * + * string contextual_type = 3; + * @return The contextualType. + */ + public java.lang.String getContextualType() { + java.lang.Object ref = contextualType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextualType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The contextual type.
+         *Required.
+         * 
+ * + * string contextual_type = 3; + * @return The bytes for contextualType. + */ + public com.google.protobuf.ByteString + getContextualTypeBytes() { + java.lang.Object ref = contextualType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextualType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The contextual type.
+         *Required.
+         * 
+ * + * string contextual_type = 3; + * @param value The contextualType to set. + * @return This builder for chaining. + */ + public Builder setContextualType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contextualType_ = value; + onChanged(); + return this; + } + /** + *
+         *The contextual type.
+         *Required.
+         * 
+ * + * string contextual_type = 3; + * @return This builder for chaining. + */ + public Builder clearContextualType() { + + contextualType_ = getDefaultInstance().getContextualType(); + onChanged(); + return this; + } + /** + *
+         *The contextual type.
+         *Required.
+         * 
+ * + * string contextual_type = 3; + * @param value The bytes for contextualType to set. + * @return This builder for chaining. + */ + public Builder setContextualTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contextualType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + private com.google.protobuf.MapField + internalGetMutableCustomMetadata() { + onChanged();; + if (customMetadata_ == null) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + if (!customMetadata_.isMutable()) { + customMetadata_ = customMetadata_.copy(); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomMetadata() { + internalGetMutableCustomMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder removeCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomMetadata() { + return internalGetMutableCustomMetadata().getMutableMap(); + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + public Builder putCustomMetadata( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+         *The custom metadata.
+         *Optional.
+         * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder putAllCustomMetadata( + java.util.Map values) { + internalGetMutableCustomMetadata().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.RowOrganizedTable.Column) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.RowOrganizedTable.Column) + private static final com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column(); + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Column parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Column(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeaderRowOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + java.util.List + getCellsList(); + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell getCells(int index); + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + int getCellsCount(); + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + java.util.List + getCellsOrBuilderList(); + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder getCellsOrBuilder( + int index); + } + /** + *
+     *A row-organized header row.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} + */ + public static final class HeaderRow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow) + HeaderRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeaderRow.newBuilder() to construct. + private HeaderRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HeaderRow() { + cells_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HeaderRow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HeaderRow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cells_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cells_.add( + input.readMessage(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cells_ = java.util.Collections.unmodifiableList(cells_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder.class); + } + + public static final int CELLS_FIELD_NUMBER = 1; + private java.util.List cells_; + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + @java.lang.Override + public java.util.List getCellsList() { + return cells_; + } + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + @java.lang.Override + public java.util.List + getCellsOrBuilderList() { + return cells_; + } + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + @java.lang.Override + public int getCellsCount() { + return cells_.size(); + } + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell getCells(int index) { + return cells_.get(index); + } + /** + *
+       *The header row cells.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder getCellsOrBuilder( + int index) { + return cells_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < cells_.size(); i++) { + output.writeMessage(1, cells_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cells_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cells_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow other = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow) obj; + + if (!getCellsList() + .equals(other.getCellsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCellsCount() > 0) { + hash = (37 * hash) + CELLS_FIELD_NUMBER; + hash = (53 * hash) + getCellsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A row-organized header row.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow) + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCellsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (cellsBuilder_ == null) { + cells_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + cellsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow build() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow buildPartial() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow result = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow(this); + int from_bitField0_ = bitField0_; + if (cellsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cells_ = java.util.Collections.unmodifiableList(cells_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cells_ = cells_; + } else { + result.cells_ = cellsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow) { + return mergeFrom((com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow other) { + if (other == com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.getDefaultInstance()) return this; + if (cellsBuilder_ == null) { + if (!other.cells_.isEmpty()) { + if (cells_.isEmpty()) { + cells_ = other.cells_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCellsIsMutable(); + cells_.addAll(other.cells_); + } + onChanged(); + } + } else { + if (!other.cells_.isEmpty()) { + if (cellsBuilder_.isEmpty()) { + cellsBuilder_.dispose(); + cellsBuilder_ = null; + cells_ = other.cells_; + bitField0_ = (bitField0_ & ~0x00000001); + cellsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCellsFieldBuilder() : null; + } else { + cellsBuilder_.addAllMessages(other.cells_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List cells_ = + java.util.Collections.emptyList(); + private void ensureCellsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cells_ = new java.util.ArrayList(cells_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder> cellsBuilder_; + + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public java.util.List getCellsList() { + if (cellsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cells_); + } else { + return cellsBuilder_.getMessageList(); + } + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public int getCellsCount() { + if (cellsBuilder_ == null) { + return cells_.size(); + } else { + return cellsBuilder_.getCount(); + } + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell getCells(int index) { + if (cellsBuilder_ == null) { + return cells_.get(index); + } else { + return cellsBuilder_.getMessage(index); + } + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder setCells( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell value) { + if (cellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellsIsMutable(); + cells_.set(index, value); + onChanged(); + } else { + cellsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder setCells( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder builderForValue) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.set(index, builderForValue.build()); + onChanged(); + } else { + cellsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder addCells(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell value) { + if (cellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellsIsMutable(); + cells_.add(value); + onChanged(); + } else { + cellsBuilder_.addMessage(value); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder addCells( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell value) { + if (cellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellsIsMutable(); + cells_.add(index, value); + onChanged(); + } else { + cellsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder addCells( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder builderForValue) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.add(builderForValue.build()); + onChanged(); + } else { + cellsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder addCells( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder builderForValue) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.add(index, builderForValue.build()); + onChanged(); + } else { + cellsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder addAllCells( + java.lang.Iterable values) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cells_); + onChanged(); + } else { + cellsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder clearCells() { + if (cellsBuilder_ == null) { + cells_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cellsBuilder_.clear(); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public Builder removeCells(int index) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.remove(index); + onChanged(); + } else { + cellsBuilder_.remove(index); + } + return this; + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder getCellsBuilder( + int index) { + return getCellsFieldBuilder().getBuilder(index); + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder getCellsOrBuilder( + int index) { + if (cellsBuilder_ == null) { + return cells_.get(index); } else { + return cellsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public java.util.List + getCellsOrBuilderList() { + if (cellsBuilder_ != null) { + return cellsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cells_); + } + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder addCellsBuilder() { + return getCellsFieldBuilder().addBuilder( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.getDefaultInstance()); + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder addCellsBuilder( + int index) { + return getCellsFieldBuilder().addBuilder( + index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.getDefaultInstance()); + } + /** + *
+         *The header row cells.
+         *Required.
+         * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell cells = 1; + */ + public java.util.List + getCellsBuilderList() { + return getCellsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder> + getCellsFieldBuilder() { + if (cellsBuilder_ == null) { + cellsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder>( + cells_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cells_ = null; + } + return cellsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow) + private static final com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow(); + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeaderRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeaderRow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeaderCellOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The column span.
+       *Default is `0`. A zero is treated as a one.
+       *Optional.
+       * 
+ * + * uint32 colspan = 1; + * @return The colspan. + */ + int getColspan(); + + /** + *
+       *The row span.
+       *Default is `0`. A zero is treated as a one.
+       *Optional.
+       * 
+ * + * uint32 rowspan = 2; + * @return The rowspan. + */ + int getRowspan(); + + /** + *
+       *The cell's value.
+       *Optional.
+       * 
+ * + * .google.protobuf.Value value = 3; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + *
+       *The cell's value.
+       *Optional.
+       * 
+ * + * .google.protobuf.Value value = 3; + * @return The value. + */ + com.google.protobuf.Value getValue(); + /** + *
+       *The cell's value.
+       *Optional.
+       * 
+ * + * .google.protobuf.Value value = 3; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); + } + /** + *
+     *A row-organized header cell.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} + */ + public static final class HeaderCell extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell) + HeaderCellOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeaderCell.newBuilder() to construct. + private HeaderCell(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HeaderCell() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HeaderCell(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HeaderCell( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + colspan_ = input.readUInt32(); + break; + } + case 16: { + + rowspan_ = input.readUInt32(); + break; + } + case 26: { + com.google.protobuf.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder.class); + } + + public static final int COLSPAN_FIELD_NUMBER = 1; + private int colspan_; + /** + *
+       *The column span.
+       *Default is `0`. A zero is treated as a one.
+       *Optional.
+       * 
+ * + * uint32 colspan = 1; + * @return The colspan. + */ + @java.lang.Override + public int getColspan() { + return colspan_; + } + + public static final int ROWSPAN_FIELD_NUMBER = 2; + private int rowspan_; + /** + *
+       *The row span.
+       *Default is `0`. A zero is treated as a one.
+       *Optional.
+       * 
+ * + * uint32 rowspan = 2; + * @return The rowspan. + */ + @java.lang.Override + public int getRowspan() { + return rowspan_; + } + + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.Value value_; + /** + *
+       *The cell's value.
+       *Optional.
+       * 
+ * + * .google.protobuf.Value value = 3; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + *
+       *The cell's value.
+       *Optional.
+       * 
+ * + * .google.protobuf.Value value = 3; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + /** + *
+       *The cell's value.
+       *Optional.
+       * 
+ * + * .google.protobuf.Value value = 3; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (colspan_ != 0) { + output.writeUInt32(1, colspan_); + } + if (rowspan_ != 0) { + output.writeUInt32(2, rowspan_); + } + if (value_ != null) { + output.writeMessage(3, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (colspan_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, colspan_); + } + if (rowspan_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, rowspan_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell other = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell) obj; + + if (getColspan() + != other.getColspan()) return false; + if (getRowspan() + != other.getRowspan()) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLSPAN_FIELD_NUMBER; + hash = (53 * hash) + getColspan(); + hash = (37 * hash) + ROWSPAN_FIELD_NUMBER; + hash = (53 * hash) + getRowspan(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A row-organized header cell.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell) + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCellOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + colspan_ = 0; + + rowspan_ = 0; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell build() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell buildPartial() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell result = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell(this); + result.colspan_ = colspan_; + result.rowspan_ = rowspan_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell) { + return mergeFrom((com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell other) { + if (other == com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell.getDefaultInstance()) return this; + if (other.getColspan() != 0) { + setColspan(other.getColspan()); + } + if (other.getRowspan() != 0) { + setRowspan(other.getRowspan()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int colspan_ ; + /** + *
+         *The column span.
+         *Default is `0`. A zero is treated as a one.
+         *Optional.
+         * 
+ * + * uint32 colspan = 1; + * @return The colspan. + */ + @java.lang.Override + public int getColspan() { + return colspan_; + } + /** + *
+         *The column span.
+         *Default is `0`. A zero is treated as a one.
+         *Optional.
+         * 
+ * + * uint32 colspan = 1; + * @param value The colspan to set. + * @return This builder for chaining. + */ + public Builder setColspan(int value) { + + colspan_ = value; + onChanged(); + return this; + } + /** + *
+         *The column span.
+         *Default is `0`. A zero is treated as a one.
+         *Optional.
+         * 
+ * + * uint32 colspan = 1; + * @return This builder for chaining. + */ + public Builder clearColspan() { + + colspan_ = 0; + onChanged(); + return this; + } + + private int rowspan_ ; + /** + *
+         *The row span.
+         *Default is `0`. A zero is treated as a one.
+         *Optional.
+         * 
+ * + * uint32 rowspan = 2; + * @return The rowspan. + */ + @java.lang.Override + public int getRowspan() { + return rowspan_; + } + /** + *
+         *The row span.
+         *Default is `0`. A zero is treated as a one.
+         *Optional.
+         * 
+ * + * uint32 rowspan = 2; + * @param value The rowspan to set. + * @return This builder for chaining. + */ + public Builder setRowspan(int value) { + + rowspan_ = value; + onChanged(); + return this; + } + /** + *
+         *The row span.
+         *Default is `0`. A zero is treated as a one.
+         *Optional.
+         * 
+ * + * uint32 rowspan = 2; + * @return This builder for chaining. + */ + public Builder clearRowspan() { + + rowspan_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valueBuilder_; + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder setValue( + com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + /** + *
+         *The cell's value.
+         *Optional.
+         * 
+ * + * .google.protobuf.Value value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell) + private static final com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell(); + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeaderCell parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeaderCell(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderCell getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + *
+     *The version of the schema.
+     *Required.
+     * 
+ * + * string version = 1; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     *The version of the schema.
+     *Required.
+     * 
+ * + * string version = 1; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     *The name of the table.
+     *Optional.
+     * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     *The name of the table.
+     *Optional.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 3; + private java.util.List columns_; + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + @java.lang.Override + public java.util.List getColumnsList() { + return columns_; + } + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + @java.lang.Override + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column getColumns(int index) { + return columns_.get(index); + } + /** + *
+     *The columns that define this table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder getColumnsOrBuilder( + int index) { + return columns_.get(index); + } + + public static final int TABLE_FIELD_NUMBER = 4; + private com.factset.protobuf.stach.v3.TableProto.Table table_; + /** + *
+     *The primary table metadata.
+     *Required.
+     * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + * @return Whether the table field is set. + */ + @java.lang.Override + public boolean hasTable() { + return table_ != null; + } + /** + *
+     *The primary table metadata.
+     *Required.
+     * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + * @return The table. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table getTable() { + return table_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.getDefaultInstance() : table_; + } + /** + *
+     *The primary table metadata.
+     *Required.
+     * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.TableOrBuilder getTableOrBuilder() { + return getTable(); + } + + public static final int MULTI_LEVEL_HEADERS_TABLE_FIELD_NUMBER = 5; + private com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable multiLevelHeadersTable_; + /** + *
+     *The multi-level headers table.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + * @return Whether the multiLevelHeadersTable field is set. + */ + @java.lang.Override + public boolean hasMultiLevelHeadersTable() { + return multiLevelHeadersTable_ != null; + } + /** + *
+     *The multi-level headers table.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + * @return The multiLevelHeadersTable. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable getMultiLevelHeadersTable() { + return multiLevelHeadersTable_ == null ? com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.getDefaultInstance() : multiLevelHeadersTable_; + } + /** + *
+     *The multi-level headers table.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder getMultiLevelHeadersTableOrBuilder() { + return getMultiLevelHeadersTable(); + } + + public static final int VIEWS_FIELD_NUMBER = 6; + private java.util.List views_; + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + @java.lang.Override + public java.util.List getViewsList() { + return views_; + } + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + @java.lang.Override + public java.util.List + getViewsOrBuilderList() { + return views_; + } + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + @java.lang.Override + public int getViewsCount() { + return views_.size(); + } + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.View getViews(int index) { + return views_.get(index); + } + /** + *
+     *The views metadata.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder getViewsOrBuilder( + int index) { + return views_.get(index); + } + + public static final int HEADER_ROWS_FIELD_NUMBER = 7; + private java.util.List headerRows_; + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + @java.lang.Override + public java.util.List getHeaderRowsList() { + return headerRows_; + } + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + @java.lang.Override + public java.util.List + getHeaderRowsOrBuilderList() { + return headerRows_; + } + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + @java.lang.Override + public int getHeaderRowsCount() { + return headerRows_.size(); + } + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow getHeaderRows(int index) { + return headerRows_.get(index); + } + /** + *
+     *The header rows.
+     *Optional.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder getHeaderRowsOrBuilder( + int index) { + return headerRows_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 8; + private java.util.List rows_; + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + @java.lang.Override + public com.google.protobuf.Struct getRows(int index) { + return rows_.get(index); + } + /** + *
+     *The rows.
+     *Required.
+     * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getRowsOrBuilder( + int index) { + return rows_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(3, columns_.get(i)); + } + if (table_ != null) { + output.writeMessage(4, getTable()); + } + if (multiLevelHeadersTable_ != null) { + output.writeMessage(5, getMultiLevelHeadersTable()); + } + for (int i = 0; i < views_.size(); i++) { + output.writeMessage(6, views_.get(i)); + } + for (int i = 0; i < headerRows_.size(); i++) { + output.writeMessage(7, headerRows_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(8, rows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, columns_.get(i)); + } + if (table_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTable()); + } + if (multiLevelHeadersTable_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMultiLevelHeadersTable()); + } + for (int i = 0; i < views_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, views_.get(i)); + } + for (int i = 0; i < headerRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, headerRows_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, rows_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable other = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getColumnsList() + .equals(other.getColumnsList())) return false; + if (hasTable() != other.hasTable()) return false; + if (hasTable()) { + if (!getTable() + .equals(other.getTable())) return false; + } + if (hasMultiLevelHeadersTable() != other.hasMultiLevelHeadersTable()) return false; + if (hasMultiLevelHeadersTable()) { + if (!getMultiLevelHeadersTable() + .equals(other.getMultiLevelHeadersTable())) return false; + } + if (!getViewsList() + .equals(other.getViewsList())) return false; + if (!getHeaderRowsList() + .equals(other.getHeaderRowsList())) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + if (hasTable()) { + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + } + if (hasMultiLevelHeadersTable()) { + hash = (37 * hash) + MULTI_LEVEL_HEADERS_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getMultiLevelHeadersTable().hashCode(); + } + if (getViewsCount() > 0) { + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getViewsList().hashCode(); + } + if (getHeaderRowsCount() > 0) { + hash = (37 * hash) + HEADER_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getHeaderRowsList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     *A row-organized table.
+     *Used for JSON-encoding a table.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.RowOrganizedTable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.RowOrganizedTable) + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.class, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + getViewsFieldBuilder(); + getHeaderRowsFieldBuilder(); + getRowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + name_ = ""; + + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + if (tableBuilder_ == null) { + table_ = null; + } else { + table_ = null; + tableBuilder_ = null; + } + if (multiLevelHeadersTableBuilder_ == null) { + multiLevelHeadersTable_ = null; + } else { + multiLevelHeadersTable_ = null; + multiLevelHeadersTableBuilder_ = null; + } + if (viewsBuilder_ == null) { + views_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + viewsBuilder_.clear(); + } + if (headerRowsBuilder_ == null) { + headerRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + headerRowsBuilder_.clear(); + } + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + rowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.internal_static_factset_protobuf_stach_v3_RowOrganizedTable_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable build() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable buildPartial() { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable result = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable(this); + int from_bitField0_ = bitField0_; + result.version_ = version_; + result.name_ = name_; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + if (tableBuilder_ == null) { + result.table_ = table_; + } else { + result.table_ = tableBuilder_.build(); + } + if (multiLevelHeadersTableBuilder_ == null) { + result.multiLevelHeadersTable_ = multiLevelHeadersTable_; + } else { + result.multiLevelHeadersTable_ = multiLevelHeadersTableBuilder_.build(); + } + if (viewsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + views_ = java.util.Collections.unmodifiableList(views_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.views_ = views_; + } else { + result.views_ = viewsBuilder_.build(); + } + if (headerRowsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + headerRows_ = java.util.Collections.unmodifiableList(headerRows_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.headerRows_ = headerRows_; + } else { + result.headerRows_ = headerRowsBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable) { + return mergeFrom((com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable other) { + if (other == com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + if (other.hasTable()) { + mergeTable(other.getTable()); + } + if (other.hasMultiLevelHeadersTable()) { + mergeMultiLevelHeadersTable(other.getMultiLevelHeadersTable()); + } + if (viewsBuilder_ == null) { + if (!other.views_.isEmpty()) { + if (views_.isEmpty()) { + views_ = other.views_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureViewsIsMutable(); + views_.addAll(other.views_); + } + onChanged(); + } + } else { + if (!other.views_.isEmpty()) { + if (viewsBuilder_.isEmpty()) { + viewsBuilder_.dispose(); + viewsBuilder_ = null; + views_ = other.views_; + bitField0_ = (bitField0_ & ~0x00000002); + viewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getViewsFieldBuilder() : null; + } else { + viewsBuilder_.addAllMessages(other.views_); + } + } + } + if (headerRowsBuilder_ == null) { + if (!other.headerRows_.isEmpty()) { + if (headerRows_.isEmpty()) { + headerRows_ = other.headerRows_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureHeaderRowsIsMutable(); + headerRows_.addAll(other.headerRows_); + } + onChanged(); + } + } else { + if (!other.headerRows_.isEmpty()) { + if (headerRowsBuilder_.isEmpty()) { + headerRowsBuilder_.dispose(); + headerRowsBuilder_ = null; + headerRows_ = other.headerRows_; + bitField0_ = (bitField0_ & ~0x00000004); + headerRowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeaderRowsFieldBuilder() : null; + } else { + headerRowsBuilder_.addAllMessages(other.headerRows_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000008); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowsFieldBuilder() : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object version_ = ""; + /** + *
+       *The version of the schema.
+       *Required.
+       * 
+ * + * string version = 1; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *The version of the schema.
+       *Required.
+       * 
+ * + * string version = 1; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *The version of the schema.
+       *Required.
+       * 
+ * + * string version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       *The version of the schema.
+       *Required.
+       * 
+ * + * string version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       *The version of the schema.
+       *Required.
+       * 
+ * + * string version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       *The name of the table.
+       *Optional.
+       * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *The name of the table.
+       *Optional.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *The name of the table.
+       *Optional.
+       * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       *The name of the table.
+       *Optional.
+       * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       *The name of the table.
+       *Optional.
+       * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder> columnsBuilder_; + + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder setColumns( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder setColumns( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder addColumns(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder addColumns( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder addColumns( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder addColumns( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder getColumnsBuilder( + int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder addColumnsBuilder() { + return getColumnsFieldBuilder().addBuilder( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.getDefaultInstance()); + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder addColumnsBuilder( + int index) { + return getColumnsFieldBuilder().addBuilder( + index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.getDefaultInstance()); + } + /** + *
+       *The columns that define this table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.Column columns = 3; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Column.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.ColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + private com.factset.protobuf.stach.v3.TableProto.Table table_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table, com.factset.protobuf.stach.v3.TableProto.Table.Builder, com.factset.protobuf.stach.v3.TableProto.TableOrBuilder> tableBuilder_; + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + * @return Whether the table field is set. + */ + public boolean hasTable() { + return tableBuilder_ != null || table_ != null; + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + * @return The table. + */ + public com.factset.protobuf.stach.v3.TableProto.Table getTable() { + if (tableBuilder_ == null) { + return table_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.getDefaultInstance() : table_; + } else { + return tableBuilder_.getMessage(); + } + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + public Builder setTable(com.factset.protobuf.stach.v3.TableProto.Table value) { + if (tableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + onChanged(); + } else { + tableBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + public Builder setTable( + com.factset.protobuf.stach.v3.TableProto.Table.Builder builderForValue) { + if (tableBuilder_ == null) { + table_ = builderForValue.build(); + onChanged(); + } else { + tableBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + public Builder mergeTable(com.factset.protobuf.stach.v3.TableProto.Table value) { + if (tableBuilder_ == null) { + if (table_ != null) { + table_ = + com.factset.protobuf.stach.v3.TableProto.Table.newBuilder(table_).mergeFrom(value).buildPartial(); + } else { + table_ = value; + } + onChanged(); + } else { + tableBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + public Builder clearTable() { + if (tableBuilder_ == null) { + table_ = null; + onChanged(); + } else { + table_ = null; + tableBuilder_ = null; + } + + return this; + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.Builder getTableBuilder() { + + onChanged(); + return getTableFieldBuilder().getBuilder(); + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + public com.factset.protobuf.stach.v3.TableProto.TableOrBuilder getTableOrBuilder() { + if (tableBuilder_ != null) { + return tableBuilder_.getMessageOrBuilder(); + } else { + return table_ == null ? + com.factset.protobuf.stach.v3.TableProto.Table.getDefaultInstance() : table_; + } + } + /** + *
+       *The primary table metadata.
+       *Required.
+       * 
+ * + * .factset.protobuf.stach.v3.Table table = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table, com.factset.protobuf.stach.v3.TableProto.Table.Builder, com.factset.protobuf.stach.v3.TableProto.TableOrBuilder> + getTableFieldBuilder() { + if (tableBuilder_ == null) { + tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table, com.factset.protobuf.stach.v3.TableProto.Table.Builder, com.factset.protobuf.stach.v3.TableProto.TableOrBuilder>( + getTable(), + getParentForChildren(), + isClean()); + table_ = null; + } + return tableBuilder_; + } + + private com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable multiLevelHeadersTable_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder> multiLevelHeadersTableBuilder_; + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + * @return Whether the multiLevelHeadersTable field is set. + */ + public boolean hasMultiLevelHeadersTable() { + return multiLevelHeadersTableBuilder_ != null || multiLevelHeadersTable_ != null; + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + * @return The multiLevelHeadersTable. + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable getMultiLevelHeadersTable() { + if (multiLevelHeadersTableBuilder_ == null) { + return multiLevelHeadersTable_ == null ? com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.getDefaultInstance() : multiLevelHeadersTable_; + } else { + return multiLevelHeadersTableBuilder_.getMessage(); + } + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + public Builder setMultiLevelHeadersTable(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable value) { + if (multiLevelHeadersTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLevelHeadersTable_ = value; + onChanged(); + } else { + multiLevelHeadersTableBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + public Builder setMultiLevelHeadersTable( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder builderForValue) { + if (multiLevelHeadersTableBuilder_ == null) { + multiLevelHeadersTable_ = builderForValue.build(); + onChanged(); + } else { + multiLevelHeadersTableBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + public Builder mergeMultiLevelHeadersTable(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable value) { + if (multiLevelHeadersTableBuilder_ == null) { + if (multiLevelHeadersTable_ != null) { + multiLevelHeadersTable_ = + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.newBuilder(multiLevelHeadersTable_).mergeFrom(value).buildPartial(); + } else { + multiLevelHeadersTable_ = value; + } + onChanged(); + } else { + multiLevelHeadersTableBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + public Builder clearMultiLevelHeadersTable() { + if (multiLevelHeadersTableBuilder_ == null) { + multiLevelHeadersTable_ = null; + onChanged(); + } else { + multiLevelHeadersTable_ = null; + multiLevelHeadersTableBuilder_ = null; + } + + return this; + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder getMultiLevelHeadersTableBuilder() { + + onChanged(); + return getMultiLevelHeadersTableFieldBuilder().getBuilder(); + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder getMultiLevelHeadersTableOrBuilder() { + if (multiLevelHeadersTableBuilder_ != null) { + return multiLevelHeadersTableBuilder_.getMessageOrBuilder(); + } else { + return multiLevelHeadersTable_ == null ? + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.getDefaultInstance() : multiLevelHeadersTable_; + } + } + /** + *
+       *The multi-level headers table.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.RowOrganizedTable multi_level_headers_table = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder> + getMultiLevelHeadersTableFieldBuilder() { + if (multiLevelHeadersTableBuilder_ == null) { + multiLevelHeadersTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTableOrBuilder>( + getMultiLevelHeadersTable(), + getParentForChildren(), + isClean()); + multiLevelHeadersTable_ = null; + } + return multiLevelHeadersTableBuilder_; + } + + private java.util.List views_ = + java.util.Collections.emptyList(); + private void ensureViewsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + views_ = new java.util.ArrayList(views_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.ViewsProto.Views.View, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder, com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder> viewsBuilder_; + + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public java.util.List getViewsList() { + if (viewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(views_); + } else { + return viewsBuilder_.getMessageList(); + } + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public int getViewsCount() { + if (viewsBuilder_ == null) { + return views_.size(); + } else { + return viewsBuilder_.getCount(); + } + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View getViews(int index) { + if (viewsBuilder_ == null) { + return views_.get(index); + } else { + return viewsBuilder_.getMessage(index); + } + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder setViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View value) { + if (viewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViewsIsMutable(); + views_.set(index, value); + onChanged(); + } else { + viewsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder setViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder builderForValue) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.set(index, builderForValue.build()); + onChanged(); + } else { + viewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder addViews(com.factset.protobuf.stach.v3.ViewsProto.Views.View value) { + if (viewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViewsIsMutable(); + views_.add(value); + onChanged(); + } else { + viewsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder addViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View value) { + if (viewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViewsIsMutable(); + views_.add(index, value); + onChanged(); + } else { + viewsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder addViews( + com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder builderForValue) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(builderForValue.build()); + onChanged(); + } else { + viewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder addViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder builderForValue) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(index, builderForValue.build()); + onChanged(); + } else { + viewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder addAllViews( + java.lang.Iterable values) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, views_); + onChanged(); + } else { + viewsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder clearViews() { + if (viewsBuilder_ == null) { + views_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + viewsBuilder_.clear(); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public Builder removeViews(int index) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.remove(index); + onChanged(); + } else { + viewsBuilder_.remove(index); + } + return this; + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder getViewsBuilder( + int index) { + return getViewsFieldBuilder().getBuilder(index); + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder getViewsOrBuilder( + int index) { + if (viewsBuilder_ == null) { + return views_.get(index); } else { + return viewsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public java.util.List + getViewsOrBuilderList() { + if (viewsBuilder_ != null) { + return viewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(views_); + } + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder addViewsBuilder() { + return getViewsFieldBuilder().addBuilder( + com.factset.protobuf.stach.v3.ViewsProto.Views.View.getDefaultInstance()); + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder addViewsBuilder( + int index) { + return getViewsFieldBuilder().addBuilder( + index, com.factset.protobuf.stach.v3.ViewsProto.Views.View.getDefaultInstance()); + } + /** + *
+       *The views metadata.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 6; + */ + public java.util.List + getViewsBuilderList() { + return getViewsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.ViewsProto.Views.View, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder, com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder> + getViewsFieldBuilder() { + if (viewsBuilder_ == null) { + viewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.ViewsProto.Views.View, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder, com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder>( + views_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + views_ = null; + } + return viewsBuilder_; + } + + private java.util.List headerRows_ = + java.util.Collections.emptyList(); + private void ensureHeaderRowsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + headerRows_ = new java.util.ArrayList(headerRows_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder> headerRowsBuilder_; + + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public java.util.List getHeaderRowsList() { + if (headerRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(headerRows_); + } else { + return headerRowsBuilder_.getMessageList(); + } + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public int getHeaderRowsCount() { + if (headerRowsBuilder_ == null) { + return headerRows_.size(); + } else { + return headerRowsBuilder_.getCount(); + } + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow getHeaderRows(int index) { + if (headerRowsBuilder_ == null) { + return headerRows_.get(index); + } else { + return headerRowsBuilder_.getMessage(index); + } + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder setHeaderRows( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow value) { + if (headerRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeaderRowsIsMutable(); + headerRows_.set(index, value); + onChanged(); + } else { + headerRowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder setHeaderRows( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder builderForValue) { + if (headerRowsBuilder_ == null) { + ensureHeaderRowsIsMutable(); + headerRows_.set(index, builderForValue.build()); + onChanged(); + } else { + headerRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder addHeaderRows(com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow value) { + if (headerRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeaderRowsIsMutable(); + headerRows_.add(value); + onChanged(); + } else { + headerRowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder addHeaderRows( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow value) { + if (headerRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeaderRowsIsMutable(); + headerRows_.add(index, value); + onChanged(); + } else { + headerRowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder addHeaderRows( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder builderForValue) { + if (headerRowsBuilder_ == null) { + ensureHeaderRowsIsMutable(); + headerRows_.add(builderForValue.build()); + onChanged(); + } else { + headerRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder addHeaderRows( + int index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder builderForValue) { + if (headerRowsBuilder_ == null) { + ensureHeaderRowsIsMutable(); + headerRows_.add(index, builderForValue.build()); + onChanged(); + } else { + headerRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder addAllHeaderRows( + java.lang.Iterable values) { + if (headerRowsBuilder_ == null) { + ensureHeaderRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headerRows_); + onChanged(); + } else { + headerRowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder clearHeaderRows() { + if (headerRowsBuilder_ == null) { + headerRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + headerRowsBuilder_.clear(); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public Builder removeHeaderRows(int index) { + if (headerRowsBuilder_ == null) { + ensureHeaderRowsIsMutable(); + headerRows_.remove(index); + onChanged(); + } else { + headerRowsBuilder_.remove(index); + } + return this; + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder getHeaderRowsBuilder( + int index) { + return getHeaderRowsFieldBuilder().getBuilder(index); + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder getHeaderRowsOrBuilder( + int index) { + if (headerRowsBuilder_ == null) { + return headerRows_.get(index); } else { + return headerRowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public java.util.List + getHeaderRowsOrBuilderList() { + if (headerRowsBuilder_ != null) { + return headerRowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(headerRows_); + } + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder addHeaderRowsBuilder() { + return getHeaderRowsFieldBuilder().addBuilder( + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.getDefaultInstance()); + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder addHeaderRowsBuilder( + int index) { + return getHeaderRowsFieldBuilder().addBuilder( + index, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.getDefaultInstance()); + } + /** + *
+       *The header rows.
+       *Optional.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow header_rows = 7; + */ + public java.util.List + getHeaderRowsBuilderList() { + return getHeaderRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder> + getHeaderRowsFieldBuilder() { + if (headerRowsBuilder_ == null) { + headerRowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRow.Builder, com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable.HeaderRowOrBuilder>( + headerRows_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + headerRows_ = null; + } + return headerRowsBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> rowsBuilder_; + + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public com.google.protobuf.Struct getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder setRows( + int index, com.google.protobuf.Struct value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder setRows( + int index, com.google.protobuf.Struct.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder addRows(com.google.protobuf.Struct value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder addRows( + int index, com.google.protobuf.Struct value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder addRows( + com.google.protobuf.Struct.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder addRows( + int index, com.google.protobuf.Struct.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public com.google.protobuf.Struct.Builder getRowsBuilder( + int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public com.google.protobuf.StructOrBuilder getRowsOrBuilder( + int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public com.google.protobuf.Struct.Builder addRowsBuilder() { + return getRowsFieldBuilder().addBuilder( + com.google.protobuf.Struct.getDefaultInstance()); + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public com.google.protobuf.Struct.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, com.google.protobuf.Struct.getDefaultInstance()); + } + /** + *
+       *The rows.
+       *Required.
+       * 
+ * + * repeated .google.protobuf.Struct rows = 8; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + rows_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.RowOrganizedTable) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.RowOrganizedTable) + private static final com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable(); + } + + public static com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowOrganizedTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RowOrganizedTable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.RowOrganizedTableProto.RowOrganizedTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_CustomMetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_Column_CustomMetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderRow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_RowOrganizedTable_HeaderCell_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-fds/protobuf/stach/v3/RowOrganizedTabl" + + "e.proto\022\031factset.protobuf.stach.v3\032(fds/" + + "protobuf/stach/v3/MetadataItem.proto\032!fd" + + "s/protobuf/stach/v3/Table.proto\032!fds/pro" + + "tobuf/stach/v3/Views.proto\032\034google/proto" + + "buf/struct.proto\"\332\006\n\021RowOrganizedTable\022\017" + + "\n\007version\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022D\n\007columns" + + "\030\003 \003(\01323.factset.protobuf.stach.v3.RowOr" + + "ganizedTable.Column\022/\n\005table\030\004 \001(\0132 .fac" + + "tset.protobuf.stach.v3.Table\022O\n\031multi_le" + + "vel_headers_table\030\005 \001(\0132,.factset.protob" + + "uf.stach.v3.RowOrganizedTable\0224\n\005views\030\006" + + " \003(\0132%.factset.protobuf.stach.v3.Views.V" + + "iew\022K\n\013header_rows\030\007 \003(\01326.factset.proto" + + "buf.stach.v3.RowOrganizedTable.HeaderRow" + + "\022%\n\004rows\030\010 \003(\0132\027.google.protobuf.Struct\032" + + "\207\002\n\006Column\022\014\n\004name\030\001 \001(\t\022\024\n\014forbid_nulls" + + "\030\002 \001(\010\022\027\n\017contextual_type\030\003 \001(\t\022`\n\017custo" + + "m_metadata\030d \003(\0132G.factset.protobuf.stac" + + "h.v3.RowOrganizedTable.Column.CustomMeta" + + "dataEntry\032^\n\023CustomMetadataEntry\022\013\n\003key\030" + + "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.factset.protobuf." + + "stach.v3.MetadataItem:\0028\001\032S\n\tHeaderRow\022F" + + "\n\005cells\030\001 \003(\01327.factset.protobuf.stach.v" + + "3.RowOrganizedTable.HeaderCell\032U\n\nHeader" + + "Cell\022\017\n\007colspan\030\001 \001(\r\022\017\n\007rowspan\030\002 \001(\r\022%" + + "\n\005value\030\003 \001(\0132\026.google.protobuf.ValueB\221\001" + + "\n\035com.factset.protobuf.stach.v3B\026RowOrga" + + "nizedTableProtoZ + * + *The array of column names that define the primary key for each row. + *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row. + *Required. + * + * + * repeated string primary_keys = 1; + * @return A list containing the primaryKeys. + */ + java.util.List + getPrimaryKeysList(); + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @return The count of primaryKeys. + */ + int getPrimaryKeysCount(); + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @param index The index of the element to return. + * @return The primaryKeys at the given index. + */ + java.lang.String getPrimaryKeys(int index); + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @param index The index of the value to return. + * @return The bytes of the primaryKeys at the given index. + */ + com.google.protobuf.ByteString + getPrimaryKeysBytes(int index); + + /** + *
+     *The total number of rows in the table.
+     *If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table.
+     *Default is `0`.
+     *Required if a payload contains partial data.
+     * 
+ * + * int32 total_num_rows = 2; + * @return The totalNumRows. + */ + int getTotalNumRows(); + + /** + *
+     *The result of the grouping algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + * @return Whether the groupResult field is set. + */ + boolean hasGroupResult(); + /** + *
+     *The result of the grouping algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + * @return The groupResult. + */ + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult getGroupResult(); + /** + *
+     *The result of the grouping algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder getGroupResultOrBuilder(); + + /** + *
+     *The result of the splitting algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + * @return Whether the splitResult field is set. + */ + boolean hasSplitResult(); + /** + *
+     *The result of the splitting algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + * @return The splitResult. + */ + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult getSplitResult(); + /** + *
+     *The result of the splitting algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder getSplitResultOrBuilder(); + + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + int getCustomMetadataCount(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + boolean containsCustomMetadata( + java.lang.String key); + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCustomMetadata(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + java.util.Map + getCustomMetadataMap(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key); + } + /** + *
+   *A state of tabular data.
+   *If the tabular data has already been grouped, split, or a collapsed column produced, these properties are required to indicate that.
+   * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table} + */ + public static final class Table extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Table) + TableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Table.newBuilder() to construct. + private Table(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Table() { + primaryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Table(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Table( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + primaryKeys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + primaryKeys_.add(s); + break; + } + case 16: { + + totalNumRows_ = input.readInt32(); + break; + } + case 26: { + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder subBuilder = null; + if (groupResult_ != null) { + subBuilder = groupResult_.toBuilder(); + } + groupResult_ = input.readMessage(com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groupResult_); + groupResult_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder subBuilder = null; + if (splitResult_ != null) { + subBuilder = splitResult_.toBuilder(); + } + splitResult_ = input.readMessage(com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(splitResult_); + splitResult_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + customMetadata__ = input.readMessage( + CustomMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + customMetadata_.getMutableMap().put( + customMetadata__.getKey(), customMetadata__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + primaryKeys_ = primaryKeys_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.class, com.factset.protobuf.stach.v3.TableProto.Table.Builder.class); + } + + public interface GroupResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.Table.GroupResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @return A list containing the by. + */ + java.util.List + getByList(); + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @return The count of by. + */ + int getByCount(); + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the element to return. + * @return The by at the given index. + */ + java.lang.String getBy(int index); + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + com.google.protobuf.ByteString + getByBytes(int index); + + /** + *
+       *The realized collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + * @return Whether the collapsedColumnResult field is set. + */ + boolean hasCollapsedColumnResult(); + /** + *
+       *The realized collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + * @return The collapsedColumnResult. + */ + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult getCollapsedColumnResult(); + /** + *
+       *The realized collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder getCollapsedColumnResultOrBuilder(); + + /** + *
+       *The name of the `string` column that contains the row paths.
+       *Required.
+       * 
+ * + * string row_path = 3; + * @return The rowPath. + */ + java.lang.String getRowPath(); + /** + *
+       *The name of the `string` column that contains the row paths.
+       *Required.
+       * 
+ * + * string row_path = 3; + * @return The bytes for rowPath. + */ + com.google.protobuf.ByteString + getRowPathBytes(); + + /** + *
+       *The name of the `boolean` column that indicates if a row is an aggregate row.
+       *Required.
+       * 
+ * + * string aggregate_rows = 4; + * @return The aggregateRows. + */ + java.lang.String getAggregateRows(); + /** + *
+       *The name of the `boolean` column that indicates if a row is an aggregate row.
+       *Required.
+       * 
+ * + * string aggregate_rows = 4; + * @return The bytes for aggregateRows. + */ + com.google.protobuf.ByteString + getAggregateRowsBytes(); + + /** + *
+       *The name of the `int32` column that contains the group level override.
+       *Takes precedence over row path length.
+       *Optional.
+       * 
+ * + * string level = 5; + * @return The level. + */ + java.lang.String getLevel(); + /** + *
+       *The name of the `int32` column that contains the group level override.
+       *Takes precedence over row path length.
+       *Optional.
+       * 
+ * + * string level = 5; + * @return The bytes for level. + */ + com.google.protobuf.ByteString + getLevelBytes(); + } + /** + *
+     *A result of executing the grouping algorithm.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table.GroupResult} + */ + public static final class GroupResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Table.GroupResult) + GroupResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupResult.newBuilder() to construct. + private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GroupResult() { + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + rowPath_ = ""; + aggregateRows_ = ""; + level_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + by_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + by_.add(s); + break; + } + case 18: { + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder subBuilder = null; + if (collapsedColumnResult_ != null) { + subBuilder = collapsedColumnResult_.toBuilder(); + } + collapsedColumnResult_ = input.readMessage(com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(collapsedColumnResult_); + collapsedColumnResult_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + rowPath_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + aggregateRows_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + level_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + by_ = by_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_GroupResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_GroupResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.class, com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder.class); + } + + public static final int BY_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList by_; + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @return A list containing the by. + */ + public com.google.protobuf.ProtocolStringList + getByList() { + return by_; + } + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @return The count of by. + */ + public int getByCount() { + return by_.size(); + } + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the element to return. + * @return The by at the given index. + */ + public java.lang.String getBy(int index) { + return by_.get(index); + } + /** + *
+       *The names of the columns that were grouped by.
+       *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + public com.google.protobuf.ByteString + getByBytes(int index) { + return by_.getByteString(index); + } + + public static final int COLLAPSED_COLUMN_RESULT_FIELD_NUMBER = 2; + private com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult collapsedColumnResult_; + /** + *
+       *The realized collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + * @return Whether the collapsedColumnResult field is set. + */ + @java.lang.Override + public boolean hasCollapsedColumnResult() { + return collapsedColumnResult_ != null; + } + /** + *
+       *The realized collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + * @return The collapsedColumnResult. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult getCollapsedColumnResult() { + return collapsedColumnResult_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.getDefaultInstance() : collapsedColumnResult_; + } + /** + *
+       *The realized collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder getCollapsedColumnResultOrBuilder() { + return getCollapsedColumnResult(); + } + + public static final int ROW_PATH_FIELD_NUMBER = 3; + private volatile java.lang.Object rowPath_; + /** + *
+       *The name of the `string` column that contains the row paths.
+       *Required.
+       * 
+ * + * string row_path = 3; + * @return The rowPath. + */ + @java.lang.Override + public java.lang.String getRowPath() { + java.lang.Object ref = rowPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowPath_ = s; + return s; + } + } + /** + *
+       *The name of the `string` column that contains the row paths.
+       *Required.
+       * 
+ * + * string row_path = 3; + * @return The bytes for rowPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRowPathBytes() { + java.lang.Object ref = rowPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rowPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGGREGATE_ROWS_FIELD_NUMBER = 4; + private volatile java.lang.Object aggregateRows_; + /** + *
+       *The name of the `boolean` column that indicates if a row is an aggregate row.
+       *Required.
+       * 
+ * + * string aggregate_rows = 4; + * @return The aggregateRows. + */ + @java.lang.Override + public java.lang.String getAggregateRows() { + java.lang.Object ref = aggregateRows_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aggregateRows_ = s; + return s; + } + } + /** + *
+       *The name of the `boolean` column that indicates if a row is an aggregate row.
+       *Required.
+       * 
+ * + * string aggregate_rows = 4; + * @return The bytes for aggregateRows. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAggregateRowsBytes() { + java.lang.Object ref = aggregateRows_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + aggregateRows_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEVEL_FIELD_NUMBER = 5; + private volatile java.lang.Object level_; + /** + *
+       *The name of the `int32` column that contains the group level override.
+       *Takes precedence over row path length.
+       *Optional.
+       * 
+ * + * string level = 5; + * @return The level. + */ + @java.lang.Override + public java.lang.String getLevel() { + java.lang.Object ref = level_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + level_ = s; + return s; + } + } + /** + *
+       *The name of the `int32` column that contains the group level override.
+       *Takes precedence over row path length.
+       *Optional.
+       * 
+ * + * string level = 5; + * @return The bytes for level. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLevelBytes() { + java.lang.Object ref = level_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + level_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < by_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, by_.getRaw(i)); + } + if (collapsedColumnResult_ != null) { + output.writeMessage(2, getCollapsedColumnResult()); + } + if (!getRowPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rowPath_); + } + if (!getAggregateRowsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, aggregateRows_); + } + if (!getLevelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, level_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < by_.size(); i++) { + dataSize += computeStringSizeNoTag(by_.getRaw(i)); + } + size += dataSize; + size += 1 * getByList().size(); + } + if (collapsedColumnResult_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCollapsedColumnResult()); + } + if (!getRowPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rowPath_); + } + if (!getAggregateRowsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, aggregateRows_); + } + if (!getLevelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, level_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableProto.Table.GroupResult)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult other = (com.factset.protobuf.stach.v3.TableProto.Table.GroupResult) obj; + + if (!getByList() + .equals(other.getByList())) return false; + if (hasCollapsedColumnResult() != other.hasCollapsedColumnResult()) return false; + if (hasCollapsedColumnResult()) { + if (!getCollapsedColumnResult() + .equals(other.getCollapsedColumnResult())) return false; + } + if (!getRowPath() + .equals(other.getRowPath())) return false; + if (!getAggregateRows() + .equals(other.getAggregateRows())) return false; + if (!getLevel() + .equals(other.getLevel())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getByCount() > 0) { + hash = (37 * hash) + BY_FIELD_NUMBER; + hash = (53 * hash) + getByList().hashCode(); + } + if (hasCollapsedColumnResult()) { + hash = (37 * hash) + COLLAPSED_COLUMN_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCollapsedColumnResult().hashCode(); + } + hash = (37 * hash) + ROW_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRowPath().hashCode(); + hash = (37 * hash) + AGGREGATE_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getAggregateRows().hashCode(); + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getLevel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableProto.Table.GroupResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A result of executing the grouping algorithm.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table.GroupResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Table.GroupResult) + com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_GroupResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_GroupResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.class, com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (collapsedColumnResultBuilder_ == null) { + collapsedColumnResult_ = null; + } else { + collapsedColumnResult_ = null; + collapsedColumnResultBuilder_ = null; + } + rowPath_ = ""; + + aggregateRows_ = ""; + + level_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_GroupResult_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult build() { + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult buildPartial() { + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult result = new com.factset.protobuf.stach.v3.TableProto.Table.GroupResult(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + by_ = by_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.by_ = by_; + if (collapsedColumnResultBuilder_ == null) { + result.collapsedColumnResult_ = collapsedColumnResult_; + } else { + result.collapsedColumnResult_ = collapsedColumnResultBuilder_.build(); + } + result.rowPath_ = rowPath_; + result.aggregateRows_ = aggregateRows_; + result.level_ = level_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableProto.Table.GroupResult) { + return mergeFrom((com.factset.protobuf.stach.v3.TableProto.Table.GroupResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableProto.Table.GroupResult other) { + if (other == com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.getDefaultInstance()) return this; + if (!other.by_.isEmpty()) { + if (by_.isEmpty()) { + by_ = other.by_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureByIsMutable(); + by_.addAll(other.by_); + } + onChanged(); + } + if (other.hasCollapsedColumnResult()) { + mergeCollapsedColumnResult(other.getCollapsedColumnResult()); + } + if (!other.getRowPath().isEmpty()) { + rowPath_ = other.rowPath_; + onChanged(); + } + if (!other.getAggregateRows().isEmpty()) { + aggregateRows_ = other.aggregateRows_; + onChanged(); + } + if (!other.getLevel().isEmpty()) { + level_ = other.level_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableProto.Table.GroupResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureByIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + by_ = new com.google.protobuf.LazyStringArrayList(by_); + bitField0_ |= 0x00000001; + } + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @return A list containing the by. + */ + public com.google.protobuf.ProtocolStringList + getByList() { + return by_.getUnmodifiableView(); + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @return The count of by. + */ + public int getByCount() { + return by_.size(); + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @param index The index of the element to return. + * @return The by at the given index. + */ + public java.lang.String getBy(int index) { + return by_.get(index); + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + public com.google.protobuf.ByteString + getByBytes(int index) { + return by_.getByteString(index); + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @param index The index to set the value at. + * @param value The by to set. + * @return This builder for chaining. + */ + public Builder setBy( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureByIsMutable(); + by_.set(index, value); + onChanged(); + return this; + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @param value The by to add. + * @return This builder for chaining. + */ + public Builder addBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureByIsMutable(); + by_.add(value); + onChanged(); + return this; + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @param values The by to add. + * @return This builder for chaining. + */ + public Builder addAllBy( + java.lang.Iterable values) { + ensureByIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, by_); + onChanged(); + return this; + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @return This builder for chaining. + */ + public Builder clearBy() { + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         *The names of the columns that were grouped by.
+         *Required, unless `Table.groupResult.collapsedColumnResult.name` is specified.
+         * 
+ * + * repeated string by = 1; + * @param value The bytes of the by to add. + * @return This builder for chaining. + */ + public Builder addByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureByIsMutable(); + by_.add(value); + onChanged(); + return this; + } + + private com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult collapsedColumnResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder> collapsedColumnResultBuilder_; + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + * @return Whether the collapsedColumnResult field is set. + */ + public boolean hasCollapsedColumnResult() { + return collapsedColumnResultBuilder_ != null || collapsedColumnResult_ != null; + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + * @return The collapsedColumnResult. + */ + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult getCollapsedColumnResult() { + if (collapsedColumnResultBuilder_ == null) { + return collapsedColumnResult_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.getDefaultInstance() : collapsedColumnResult_; + } else { + return collapsedColumnResultBuilder_.getMessage(); + } + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + public Builder setCollapsedColumnResult(com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult value) { + if (collapsedColumnResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + collapsedColumnResult_ = value; + onChanged(); + } else { + collapsedColumnResultBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + public Builder setCollapsedColumnResult( + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder builderForValue) { + if (collapsedColumnResultBuilder_ == null) { + collapsedColumnResult_ = builderForValue.build(); + onChanged(); + } else { + collapsedColumnResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + public Builder mergeCollapsedColumnResult(com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult value) { + if (collapsedColumnResultBuilder_ == null) { + if (collapsedColumnResult_ != null) { + collapsedColumnResult_ = + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.newBuilder(collapsedColumnResult_).mergeFrom(value).buildPartial(); + } else { + collapsedColumnResult_ = value; + } + onChanged(); + } else { + collapsedColumnResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + public Builder clearCollapsedColumnResult() { + if (collapsedColumnResultBuilder_ == null) { + collapsedColumnResult_ = null; + onChanged(); + } else { + collapsedColumnResult_ = null; + collapsedColumnResultBuilder_ = null; + } + + return this; + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder getCollapsedColumnResultBuilder() { + + onChanged(); + return getCollapsedColumnResultFieldBuilder().getBuilder(); + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder getCollapsedColumnResultOrBuilder() { + if (collapsedColumnResultBuilder_ != null) { + return collapsedColumnResultBuilder_.getMessageOrBuilder(); + } else { + return collapsedColumnResult_ == null ? + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.getDefaultInstance() : collapsedColumnResult_; + } + } + /** + *
+         *The realized collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.Table.CollapsedColumnResult collapsed_column_result = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder> + getCollapsedColumnResultFieldBuilder() { + if (collapsedColumnResultBuilder_ == null) { + collapsedColumnResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder>( + getCollapsedColumnResult(), + getParentForChildren(), + isClean()); + collapsedColumnResult_ = null; + } + return collapsedColumnResultBuilder_; + } + + private java.lang.Object rowPath_ = ""; + /** + *
+         *The name of the `string` column that contains the row paths.
+         *Required.
+         * 
+ * + * string row_path = 3; + * @return The rowPath. + */ + public java.lang.String getRowPath() { + java.lang.Object ref = rowPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the `string` column that contains the row paths.
+         *Required.
+         * 
+ * + * string row_path = 3; + * @return The bytes for rowPath. + */ + public com.google.protobuf.ByteString + getRowPathBytes() { + java.lang.Object ref = rowPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rowPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the `string` column that contains the row paths.
+         *Required.
+         * 
+ * + * string row_path = 3; + * @param value The rowPath to set. + * @return This builder for chaining. + */ + public Builder setRowPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rowPath_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the `string` column that contains the row paths.
+         *Required.
+         * 
+ * + * string row_path = 3; + * @return This builder for chaining. + */ + public Builder clearRowPath() { + + rowPath_ = getDefaultInstance().getRowPath(); + onChanged(); + return this; + } + /** + *
+         *The name of the `string` column that contains the row paths.
+         *Required.
+         * 
+ * + * string row_path = 3; + * @param value The bytes for rowPath to set. + * @return This builder for chaining. + */ + public Builder setRowPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rowPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object aggregateRows_ = ""; + /** + *
+         *The name of the `boolean` column that indicates if a row is an aggregate row.
+         *Required.
+         * 
+ * + * string aggregate_rows = 4; + * @return The aggregateRows. + */ + public java.lang.String getAggregateRows() { + java.lang.Object ref = aggregateRows_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aggregateRows_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the `boolean` column that indicates if a row is an aggregate row.
+         *Required.
+         * 
+ * + * string aggregate_rows = 4; + * @return The bytes for aggregateRows. + */ + public com.google.protobuf.ByteString + getAggregateRowsBytes() { + java.lang.Object ref = aggregateRows_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + aggregateRows_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the `boolean` column that indicates if a row is an aggregate row.
+         *Required.
+         * 
+ * + * string aggregate_rows = 4; + * @param value The aggregateRows to set. + * @return This builder for chaining. + */ + public Builder setAggregateRows( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + aggregateRows_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the `boolean` column that indicates if a row is an aggregate row.
+         *Required.
+         * 
+ * + * string aggregate_rows = 4; + * @return This builder for chaining. + */ + public Builder clearAggregateRows() { + + aggregateRows_ = getDefaultInstance().getAggregateRows(); + onChanged(); + return this; + } + /** + *
+         *The name of the `boolean` column that indicates if a row is an aggregate row.
+         *Required.
+         * 
+ * + * string aggregate_rows = 4; + * @param value The bytes for aggregateRows to set. + * @return This builder for chaining. + */ + public Builder setAggregateRowsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + aggregateRows_ = value; + onChanged(); + return this; + } + + private java.lang.Object level_ = ""; + /** + *
+         *The name of the `int32` column that contains the group level override.
+         *Takes precedence over row path length.
+         *Optional.
+         * 
+ * + * string level = 5; + * @return The level. + */ + public java.lang.String getLevel() { + java.lang.Object ref = level_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + level_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the `int32` column that contains the group level override.
+         *Takes precedence over row path length.
+         *Optional.
+         * 
+ * + * string level = 5; + * @return The bytes for level. + */ + public com.google.protobuf.ByteString + getLevelBytes() { + java.lang.Object ref = level_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + level_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the `int32` column that contains the group level override.
+         *Takes precedence over row path length.
+         *Optional.
+         * 
+ * + * string level = 5; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + level_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the `int32` column that contains the group level override.
+         *Takes precedence over row path length.
+         *Optional.
+         * 
+ * + * string level = 5; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = getDefaultInstance().getLevel(); + onChanged(); + return this; + } + /** + *
+         *The name of the `int32` column that contains the group level override.
+         *Takes precedence over row path length.
+         *Optional.
+         * 
+ * + * string level = 5; + * @param value The bytes for level to set. + * @return This builder for chaining. + */ + public Builder setLevelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + level_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Table.GroupResult) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Table.GroupResult) + private static final com.factset.protobuf.stach.v3.TableProto.Table.GroupResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableProto.Table.GroupResult(); + } + + public static com.factset.protobuf.stach.v3.TableProto.Table.GroupResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CollapsedColumnResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.Table.CollapsedColumnResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The name of the collapsed column.
+       *The collapsed column is in the data so it is considered realized and therefore needs a name.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+       *The name of the collapsed column.
+       *The collapsed column is in the data so it is considered realized and therefore needs a name.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+     *A result of the collapsed column algorithm.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table.CollapsedColumnResult} + */ + public static final class CollapsedColumnResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Table.CollapsedColumnResult) + CollapsedColumnResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CollapsedColumnResult.newBuilder() to construct. + private CollapsedColumnResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CollapsedColumnResult() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollapsedColumnResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CollapsedColumnResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.class, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       *The name of the collapsed column.
+       *The collapsed column is in the data so it is considered realized and therefore needs a name.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+       *The name of the collapsed column.
+       *The collapsed column is in the data so it is considered realized and therefore needs a name.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult other = (com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A result of the collapsed column algorithm.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table.CollapsedColumnResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Table.CollapsedColumnResult) + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.class, com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult build() { + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult buildPartial() { + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult result = new com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult) { + return mergeFrom((com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult other) { + if (other == com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         *The name of the collapsed column.
+         *The collapsed column is in the data so it is considered realized and therefore needs a name.
+         *Required.
+         * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the collapsed column.
+         *The collapsed column is in the data so it is considered realized and therefore needs a name.
+         *Required.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the collapsed column.
+         *The collapsed column is in the data so it is considered realized and therefore needs a name.
+         *Required.
+         * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the collapsed column.
+         *The collapsed column is in the data so it is considered realized and therefore needs a name.
+         *Required.
+         * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         *The name of the collapsed column.
+         *The collapsed column is in the data so it is considered realized and therefore needs a name.
+         *Required.
+         * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Table.CollapsedColumnResult) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Table.CollapsedColumnResult) + private static final com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult(); + } + + public static com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollapsedColumnResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CollapsedColumnResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.CollapsedColumnResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SplitResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.Table.SplitResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+       *Required.
+       * 
+ * + * string multi_level_headers_table_reference = 1; + * @return The multiLevelHeadersTableReference. + */ + java.lang.String getMultiLevelHeadersTableReference(); + /** + *
+       *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+       *Required.
+       * 
+ * + * string multi_level_headers_table_reference = 1; + * @return The bytes for multiLevelHeadersTableReference. + */ + com.google.protobuf.ByteString + getMultiLevelHeadersTableReferenceBytes(); + } + /** + *
+     *A result of executing the splitting algorithm.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table.SplitResult} + */ + public static final class SplitResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Table.SplitResult) + SplitResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SplitResult.newBuilder() to construct. + private SplitResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SplitResult() { + multiLevelHeadersTableReference_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SplitResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SplitResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + multiLevelHeadersTableReference_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_SplitResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_SplitResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.class, com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder.class); + } + + public static final int MULTI_LEVEL_HEADERS_TABLE_REFERENCE_FIELD_NUMBER = 1; + private volatile java.lang.Object multiLevelHeadersTableReference_; + /** + *
+       *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+       *Required.
+       * 
+ * + * string multi_level_headers_table_reference = 1; + * @return The multiLevelHeadersTableReference. + */ + @java.lang.Override + public java.lang.String getMultiLevelHeadersTableReference() { + java.lang.Object ref = multiLevelHeadersTableReference_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + multiLevelHeadersTableReference_ = s; + return s; + } + } + /** + *
+       *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+       *Required.
+       * 
+ * + * string multi_level_headers_table_reference = 1; + * @return The bytes for multiLevelHeadersTableReference. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMultiLevelHeadersTableReferenceBytes() { + java.lang.Object ref = multiLevelHeadersTableReference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + multiLevelHeadersTableReference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMultiLevelHeadersTableReferenceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, multiLevelHeadersTableReference_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMultiLevelHeadersTableReferenceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, multiLevelHeadersTableReference_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableProto.Table.SplitResult)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult other = (com.factset.protobuf.stach.v3.TableProto.Table.SplitResult) obj; + + if (!getMultiLevelHeadersTableReference() + .equals(other.getMultiLevelHeadersTableReference())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MULTI_LEVEL_HEADERS_TABLE_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getMultiLevelHeadersTableReference().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableProto.Table.SplitResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A result of executing the splitting algorithm.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table.SplitResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Table.SplitResult) + com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_SplitResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_SplitResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.class, com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + multiLevelHeadersTableReference_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_SplitResult_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult build() { + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult buildPartial() { + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult result = new com.factset.protobuf.stach.v3.TableProto.Table.SplitResult(this); + result.multiLevelHeadersTableReference_ = multiLevelHeadersTableReference_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableProto.Table.SplitResult) { + return mergeFrom((com.factset.protobuf.stach.v3.TableProto.Table.SplitResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableProto.Table.SplitResult other) { + if (other == com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.getDefaultInstance()) return this; + if (!other.getMultiLevelHeadersTableReference().isEmpty()) { + multiLevelHeadersTableReference_ = other.multiLevelHeadersTableReference_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableProto.Table.SplitResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object multiLevelHeadersTableReference_ = ""; + /** + *
+         *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+         *Required.
+         * 
+ * + * string multi_level_headers_table_reference = 1; + * @return The multiLevelHeadersTableReference. + */ + public java.lang.String getMultiLevelHeadersTableReference() { + java.lang.Object ref = multiLevelHeadersTableReference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + multiLevelHeadersTableReference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+         *Required.
+         * 
+ * + * string multi_level_headers_table_reference = 1; + * @return The bytes for multiLevelHeadersTableReference. + */ + public com.google.protobuf.ByteString + getMultiLevelHeadersTableReferenceBytes() { + java.lang.Object ref = multiLevelHeadersTableReference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + multiLevelHeadersTableReference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+         *Required.
+         * 
+ * + * string multi_level_headers_table_reference = 1; + * @param value The multiLevelHeadersTableReference to set. + * @return This builder for chaining. + */ + public Builder setMultiLevelHeadersTableReference( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + multiLevelHeadersTableReference_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+         *Required.
+         * 
+ * + * string multi_level_headers_table_reference = 1; + * @return This builder for chaining. + */ + public Builder clearMultiLevelHeadersTableReference() { + + multiLevelHeadersTableReference_ = getDefaultInstance().getMultiLevelHeadersTableReference(); + onChanged(); + return this; + } + /** + *
+         *The name of the `string` column in the multi-level headers table that refers to column names in the primary table.
+         *Required.
+         * 
+ * + * string multi_level_headers_table_reference = 1; + * @param value The bytes for multiLevelHeadersTableReference to set. + * @return This builder for chaining. + */ + public Builder setMultiLevelHeadersTableReferenceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + multiLevelHeadersTableReference_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Table.SplitResult) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Table.SplitResult) + private static final com.factset.protobuf.stach.v3.TableProto.Table.SplitResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableProto.Table.SplitResult(); + } + + public static com.factset.protobuf.stach.v3.TableProto.Table.SplitResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SplitResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int PRIMARY_KEYS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList primaryKeys_; + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @return A list containing the primaryKeys. + */ + public com.google.protobuf.ProtocolStringList + getPrimaryKeysList() { + return primaryKeys_; + } + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @return The count of primaryKeys. + */ + public int getPrimaryKeysCount() { + return primaryKeys_.size(); + } + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @param index The index of the element to return. + * @return The primaryKeys at the given index. + */ + public java.lang.String getPrimaryKeys(int index) { + return primaryKeys_.get(index); + } + /** + *
+     * 
+     *The array of column names that define the primary key for each row.
+     *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+     *Required.
+     * 
+ * + * repeated string primary_keys = 1; + * @param index The index of the value to return. + * @return The bytes of the primaryKeys at the given index. + */ + public com.google.protobuf.ByteString + getPrimaryKeysBytes(int index) { + return primaryKeys_.getByteString(index); + } + + public static final int TOTAL_NUM_ROWS_FIELD_NUMBER = 2; + private int totalNumRows_; + /** + *
+     *The total number of rows in the table.
+     *If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table.
+     *Default is `0`.
+     *Required if a payload contains partial data.
+     * 
+ * + * int32 total_num_rows = 2; + * @return The totalNumRows. + */ + @java.lang.Override + public int getTotalNumRows() { + return totalNumRows_; + } + + public static final int GROUP_RESULT_FIELD_NUMBER = 3; + private com.factset.protobuf.stach.v3.TableProto.Table.GroupResult groupResult_; + /** + *
+     *The result of the grouping algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + * @return Whether the groupResult field is set. + */ + @java.lang.Override + public boolean hasGroupResult() { + return groupResult_ != null; + } + /** + *
+     *The result of the grouping algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + * @return The groupResult. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult getGroupResult() { + return groupResult_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.getDefaultInstance() : groupResult_; + } + /** + *
+     *The result of the grouping algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder getGroupResultOrBuilder() { + return getGroupResult(); + } + + public static final int SPLIT_RESULT_FIELD_NUMBER = 4; + private com.factset.protobuf.stach.v3.TableProto.Table.SplitResult splitResult_; + /** + *
+     *The result of the splitting algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + * @return Whether the splitResult field is set. + */ + @java.lang.Override + public boolean hasSplitResult() { + return splitResult_ != null; + } + /** + *
+     *The result of the splitting algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + * @return The splitResult. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult getSplitResult() { + return splitResult_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.getDefaultInstance() : splitResult_; + } + /** + *
+     *The result of the splitting algorithm.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder getSplitResultOrBuilder() { + return getSplitResult(); + } + + public static final int CUSTOM_METADATA_FIELD_NUMBER = 100; + private static final class CustomMetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_CustomMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < primaryKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryKeys_.getRaw(i)); + } + if (totalNumRows_ != 0) { + output.writeInt32(2, totalNumRows_); + } + if (groupResult_ != null) { + output.writeMessage(3, getGroupResult()); + } + if (splitResult_ != null) { + output.writeMessage(4, getSplitResult()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCustomMetadata(), + CustomMetadataDefaultEntryHolder.defaultEntry, + 100); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < primaryKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(primaryKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrimaryKeysList().size(); + } + if (totalNumRows_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, totalNumRows_); + } + if (groupResult_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGroupResult()); + } + if (splitResult_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSplitResult()); + } + for (java.util.Map.Entry entry + : internalGetCustomMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + customMetadata__ = CustomMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, customMetadata__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableProto.Table)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableProto.Table other = (com.factset.protobuf.stach.v3.TableProto.Table) obj; + + if (!getPrimaryKeysList() + .equals(other.getPrimaryKeysList())) return false; + if (getTotalNumRows() + != other.getTotalNumRows()) return false; + if (hasGroupResult() != other.hasGroupResult()) return false; + if (hasGroupResult()) { + if (!getGroupResult() + .equals(other.getGroupResult())) return false; + } + if (hasSplitResult() != other.hasSplitResult()) return false; + if (hasSplitResult()) { + if (!getSplitResult() + .equals(other.getSplitResult())) return false; + } + if (!internalGetCustomMetadata().equals( + other.internalGetCustomMetadata())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrimaryKeysCount() > 0) { + hash = (37 * hash) + PRIMARY_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryKeysList().hashCode(); + } + hash = (37 * hash) + TOTAL_NUM_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getTotalNumRows(); + if (hasGroupResult()) { + hash = (37 * hash) + GROUP_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getGroupResult().hashCode(); + } + if (hasSplitResult()) { + hash = (37 * hash) + SPLIT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getSplitResult().hashCode(); + } + if (!internalGetCustomMetadata().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableProto.Table parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableProto.Table prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     *A state of tabular data.
+     *If the tabular data has already been grouped, split, or a collapsed column produced, these properties are required to indicate that.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Table} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Table) + com.factset.protobuf.stach.v3.TableProto.TableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 100: + return internalGetMutableCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableProto.Table.class, com.factset.protobuf.stach.v3.TableProto.Table.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableProto.Table.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + primaryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + totalNumRows_ = 0; + + if (groupResultBuilder_ == null) { + groupResult_ = null; + } else { + groupResult_ = null; + groupResultBuilder_ = null; + } + if (splitResultBuilder_ == null) { + splitResult_ = null; + } else { + splitResult_ = null; + splitResultBuilder_ = null; + } + internalGetMutableCustomMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableProto.internal_static_factset_protobuf_stach_v3_Table_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableProto.Table.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table build() { + com.factset.protobuf.stach.v3.TableProto.Table result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table buildPartial() { + com.factset.protobuf.stach.v3.TableProto.Table result = new com.factset.protobuf.stach.v3.TableProto.Table(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + primaryKeys_ = primaryKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.primaryKeys_ = primaryKeys_; + result.totalNumRows_ = totalNumRows_; + if (groupResultBuilder_ == null) { + result.groupResult_ = groupResult_; + } else { + result.groupResult_ = groupResultBuilder_.build(); + } + if (splitResultBuilder_ == null) { + result.splitResult_ = splitResult_; + } else { + result.splitResult_ = splitResultBuilder_.build(); + } + result.customMetadata_ = internalGetCustomMetadata(); + result.customMetadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableProto.Table) { + return mergeFrom((com.factset.protobuf.stach.v3.TableProto.Table)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableProto.Table other) { + if (other == com.factset.protobuf.stach.v3.TableProto.Table.getDefaultInstance()) return this; + if (!other.primaryKeys_.isEmpty()) { + if (primaryKeys_.isEmpty()) { + primaryKeys_ = other.primaryKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrimaryKeysIsMutable(); + primaryKeys_.addAll(other.primaryKeys_); + } + onChanged(); + } + if (other.getTotalNumRows() != 0) { + setTotalNumRows(other.getTotalNumRows()); + } + if (other.hasGroupResult()) { + mergeGroupResult(other.getGroupResult()); + } + if (other.hasSplitResult()) { + mergeSplitResult(other.getSplitResult()); + } + internalGetMutableCustomMetadata().mergeFrom( + other.internalGetCustomMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableProto.Table parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableProto.Table) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList primaryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrimaryKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + primaryKeys_ = new com.google.protobuf.LazyStringArrayList(primaryKeys_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @return A list containing the primaryKeys. + */ + public com.google.protobuf.ProtocolStringList + getPrimaryKeysList() { + return primaryKeys_.getUnmodifiableView(); + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @return The count of primaryKeys. + */ + public int getPrimaryKeysCount() { + return primaryKeys_.size(); + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @param index The index of the element to return. + * @return The primaryKeys at the given index. + */ + public java.lang.String getPrimaryKeys(int index) { + return primaryKeys_.get(index); + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @param index The index of the value to return. + * @return The bytes of the primaryKeys at the given index. + */ + public com.google.protobuf.ByteString + getPrimaryKeysBytes(int index) { + return primaryKeys_.getByteString(index); + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @param index The index to set the value at. + * @param value The primaryKeys to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryKeysIsMutable(); + primaryKeys_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @param value The primaryKeys to add. + * @return This builder for chaining. + */ + public Builder addPrimaryKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryKeysIsMutable(); + primaryKeys_.add(value); + onChanged(); + return this; + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @param values The primaryKeys to add. + * @return This builder for chaining. + */ + public Builder addAllPrimaryKeys( + java.lang.Iterable values) { + ensurePrimaryKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, primaryKeys_); + onChanged(); + return this; + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @return This builder for chaining. + */ + public Builder clearPrimaryKeys() { + primaryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * 
+       *The array of column names that define the primary key for each row.
+       *If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row.
+       *Required.
+       * 
+ * + * repeated string primary_keys = 1; + * @param value The bytes of the primaryKeys to add. + * @return This builder for chaining. + */ + public Builder addPrimaryKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrimaryKeysIsMutable(); + primaryKeys_.add(value); + onChanged(); + return this; + } + + private int totalNumRows_ ; + /** + *
+       *The total number of rows in the table.
+       *If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table.
+       *Default is `0`.
+       *Required if a payload contains partial data.
+       * 
+ * + * int32 total_num_rows = 2; + * @return The totalNumRows. + */ + @java.lang.Override + public int getTotalNumRows() { + return totalNumRows_; + } + /** + *
+       *The total number of rows in the table.
+       *If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table.
+       *Default is `0`.
+       *Required if a payload contains partial data.
+       * 
+ * + * int32 total_num_rows = 2; + * @param value The totalNumRows to set. + * @return This builder for chaining. + */ + public Builder setTotalNumRows(int value) { + + totalNumRows_ = value; + onChanged(); + return this; + } + /** + *
+       *The total number of rows in the table.
+       *If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table.
+       *Default is `0`.
+       *Required if a payload contains partial data.
+       * 
+ * + * int32 total_num_rows = 2; + * @return This builder for chaining. + */ + public Builder clearTotalNumRows() { + + totalNumRows_ = 0; + onChanged(); + return this; + } + + private com.factset.protobuf.stach.v3.TableProto.Table.GroupResult groupResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult, com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder> groupResultBuilder_; + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + * @return Whether the groupResult field is set. + */ + public boolean hasGroupResult() { + return groupResultBuilder_ != null || groupResult_ != null; + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + * @return The groupResult. + */ + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult getGroupResult() { + if (groupResultBuilder_ == null) { + return groupResult_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.getDefaultInstance() : groupResult_; + } else { + return groupResultBuilder_.getMessage(); + } + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + public Builder setGroupResult(com.factset.protobuf.stach.v3.TableProto.Table.GroupResult value) { + if (groupResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groupResult_ = value; + onChanged(); + } else { + groupResultBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + public Builder setGroupResult( + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder builderForValue) { + if (groupResultBuilder_ == null) { + groupResult_ = builderForValue.build(); + onChanged(); + } else { + groupResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + public Builder mergeGroupResult(com.factset.protobuf.stach.v3.TableProto.Table.GroupResult value) { + if (groupResultBuilder_ == null) { + if (groupResult_ != null) { + groupResult_ = + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.newBuilder(groupResult_).mergeFrom(value).buildPartial(); + } else { + groupResult_ = value; + } + onChanged(); + } else { + groupResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + public Builder clearGroupResult() { + if (groupResultBuilder_ == null) { + groupResult_ = null; + onChanged(); + } else { + groupResult_ = null; + groupResultBuilder_ = null; + } + + return this; + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder getGroupResultBuilder() { + + onChanged(); + return getGroupResultFieldBuilder().getBuilder(); + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder getGroupResultOrBuilder() { + if (groupResultBuilder_ != null) { + return groupResultBuilder_.getMessageOrBuilder(); + } else { + return groupResult_ == null ? + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.getDefaultInstance() : groupResult_; + } + } + /** + *
+       *The result of the grouping algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.GroupResult group_result = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult, com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder> + getGroupResultFieldBuilder() { + if (groupResultBuilder_ == null) { + groupResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.GroupResult, com.factset.protobuf.stach.v3.TableProto.Table.GroupResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.GroupResultOrBuilder>( + getGroupResult(), + getParentForChildren(), + isClean()); + groupResult_ = null; + } + return groupResultBuilder_; + } + + private com.factset.protobuf.stach.v3.TableProto.Table.SplitResult splitResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult, com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder> splitResultBuilder_; + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + * @return Whether the splitResult field is set. + */ + public boolean hasSplitResult() { + return splitResultBuilder_ != null || splitResult_ != null; + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + * @return The splitResult. + */ + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult getSplitResult() { + if (splitResultBuilder_ == null) { + return splitResult_ == null ? com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.getDefaultInstance() : splitResult_; + } else { + return splitResultBuilder_.getMessage(); + } + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + public Builder setSplitResult(com.factset.protobuf.stach.v3.TableProto.Table.SplitResult value) { + if (splitResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + splitResult_ = value; + onChanged(); + } else { + splitResultBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + public Builder setSplitResult( + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder builderForValue) { + if (splitResultBuilder_ == null) { + splitResult_ = builderForValue.build(); + onChanged(); + } else { + splitResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + public Builder mergeSplitResult(com.factset.protobuf.stach.v3.TableProto.Table.SplitResult value) { + if (splitResultBuilder_ == null) { + if (splitResult_ != null) { + splitResult_ = + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.newBuilder(splitResult_).mergeFrom(value).buildPartial(); + } else { + splitResult_ = value; + } + onChanged(); + } else { + splitResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + public Builder clearSplitResult() { + if (splitResultBuilder_ == null) { + splitResult_ = null; + onChanged(); + } else { + splitResult_ = null; + splitResultBuilder_ = null; + } + + return this; + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder getSplitResultBuilder() { + + onChanged(); + return getSplitResultFieldBuilder().getBuilder(); + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + public com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder getSplitResultOrBuilder() { + if (splitResultBuilder_ != null) { + return splitResultBuilder_.getMessageOrBuilder(); + } else { + return splitResult_ == null ? + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.getDefaultInstance() : splitResult_; + } + } + /** + *
+       *The result of the splitting algorithm.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.Table.SplitResult split_result = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult, com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder> + getSplitResultFieldBuilder() { + if (splitResultBuilder_ == null) { + splitResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableProto.Table.SplitResult, com.factset.protobuf.stach.v3.TableProto.Table.SplitResult.Builder, com.factset.protobuf.stach.v3.TableProto.Table.SplitResultOrBuilder>( + getSplitResult(), + getParentForChildren(), + isClean()); + splitResult_ = null; + } + return splitResultBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + private com.google.protobuf.MapField + internalGetMutableCustomMetadata() { + onChanged();; + if (customMetadata_ == null) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + if (!customMetadata_.isMutable()) { + customMetadata_ = customMetadata_.copy(); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomMetadata() { + internalGetMutableCustomMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder removeCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomMetadata() { + return internalGetMutableCustomMetadata().getMutableMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + public Builder putCustomMetadata( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder putAllCustomMetadata( + java.util.Map values) { + internalGetMutableCustomMetadata().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Table) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Table) + private static final com.factset.protobuf.stach.v3.TableProto.Table DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableProto.Table(); + } + + public static com.factset.protobuf.stach.v3.TableProto.Table getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Table parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Table(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableProto.Table getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Table_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Table_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Table_GroupResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Table_GroupResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Table_CollapsedColumnResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Table_SplitResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Table_SplitResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Table_CustomMetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Table_CustomMetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!fds/protobuf/stach/v3/Table.proto\022\031fac" + + "tset.protobuf.stach.v3\032(fds/protobuf/sta" + + "ch/v3/MetadataItem.proto\"\375\004\n\005Table\022\024\n\014pr" + + "imary_keys\030\001 \003(\t\022\026\n\016total_num_rows\030\002 \001(\005" + + "\022B\n\014group_result\030\003 \001(\0132,.factset.protobu" + + "f.stach.v3.Table.GroupResult\022B\n\014split_re" + + "sult\030\004 \001(\0132,.factset.protobuf.stach.v3.T" + + "able.SplitResult\022M\n\017custom_metadata\030d \003(" + + "\01324.factset.protobuf.stach.v3.Table.Cust" + + "omMetadataEntry\032\253\001\n\013GroupResult\022\n\n\002by\030\001 " + + "\003(\t\022W\n\027collapsed_column_result\030\002 \001(\01326.f" + + "actset.protobuf.stach.v3.Table.Collapsed" + + "ColumnResult\022\020\n\010row_path\030\003 \001(\t\022\026\n\016aggreg" + + "ate_rows\030\004 \001(\t\022\r\n\005level\030\005 \001(\t\032%\n\025Collaps" + + "edColumnResult\022\014\n\004name\030\001 \001(\t\032:\n\013SplitRes" + + "ult\022+\n#multi_level_headers_table_referen" + + "ce\030\001 \001(\t\032^\n\023CustomMetadataEntry\022\013\n\003key\030\001" + + " \001(\t\0226\n\005value\030\002 \001(\0132\'.factset.protobuf.s" + + "tach.v3.MetadataItem:\0028\001B\205\001\n\035com.factset" + + ".protobuf.stach.v3B\nTableProtoZ + *The human readable display name for the table. + *Optional. + * + * + * string display_name = 1; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     *The human readable display name for the table.
+     *Optional.
+     * 
+ * + * string display_name = 1; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @return A list containing the columns. + */ + java.util.List + getColumnsList(); + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @return The count of columns. + */ + int getColumnsCount(); + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @param index The index of the element to return. + * @return The columns at the given index. + */ + java.lang.String getColumns(int index); + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + com.google.protobuf.ByteString + getColumnsBytes(int index); + + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + int getHeadersCount(); + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + boolean containsHeaders( + java.lang.String key); + /** + * Use {@link #getHeadersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHeaders(); + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.util.Map + getHeadersMap(); + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + + java.lang.String getHeadersOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + + java.lang.String getHeadersOrThrow( + java.lang.String key); + + /** + *
+     *The group algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + * @return Whether the group field is set. + */ + boolean hasGroup(); + /** + *
+     *The group algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + * @return The group. + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group getGroup(); + /** + *
+     *The group algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder getGroupOrBuilder(); + + /** + *
+     *The split algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + * @return Whether the split field is set. + */ + boolean hasSplit(); + /** + *
+     *The split algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + * @return The split. + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split getSplit(); + /** + *
+     *The split algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder getSplitOrBuilder(); + + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + int getCustomMetadataCount(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + boolean containsCustomMetadata( + java.lang.String key); + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCustomMetadata(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + java.util.Map + getCustomMetadataMap(); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue); + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key); + } + /** + *
+   *A set of metadata specifying the settings that instruct how to turn tabular data into a rendered table.
+   * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView} + */ + public static final class TableView extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.TableView) + TableViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableView.newBuilder() to construct. + private TableView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TableView() { + displayName_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TableView(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TableView( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + headers_ = com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + headers__ = input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + headers_.getMutableMap().put( + headers__.getKey(), headers__.getValue()); + break; + } + case 34: { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder subBuilder = null; + if (group_ != null) { + subBuilder = group_.toBuilder(); + } + group_ = input.readMessage(com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(group_); + group_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder subBuilder = null; + if (split_ != null) { + subBuilder = split_.toBuilder(); + } + split_ = input.readMessage(com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(split_); + split_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + customMetadata__ = input.readMessage( + CustomMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + customMetadata_.getMutableMap().put( + customMetadata__.getKey(), customMetadata__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = columns_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetHeaders(); + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder.class); + } + + public interface GroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.TableView.Group) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @return A list containing the by. + */ + java.util.List + getByList(); + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @return The count of by. + */ + int getByCount(); + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the element to return. + * @return The by at the given index. + */ + java.lang.String getBy(int index); + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + com.google.protobuf.ByteString + getByBytes(int index); + + /** + *
+       *The settings for the algorithm to create a collapsed column.
+       *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + * @return Whether the collapsedColumn field is set. + */ + boolean hasCollapsedColumn(); + /** + *
+       *The settings for the algorithm to create a collapsed column.
+       *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + * @return The collapsedColumn. + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn getCollapsedColumn(); + /** + *
+       *The settings for the algorithm to create a collapsed column.
+       *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder getCollapsedColumnOrBuilder(); + } + /** + *
+     *An algorithm that groups tabular data by a set of columns and produces aggregate rows.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView.Group} + */ + public static final class Group extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.TableView.Group) + GroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use Group.newBuilder() to construct. + private Group(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Group() { + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Group(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Group( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + by_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + by_.add(s); + break; + } + case 18: { + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder subBuilder = null; + if (collapsedColumn_ != null) { + subBuilder = collapsedColumn_.toBuilder(); + } + collapsedColumn_ = input.readMessage(com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(collapsedColumn_); + collapsedColumn_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + by_ = by_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Group_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Group_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder.class); + } + + public static final int BY_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList by_; + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @return A list containing the by. + */ + public com.google.protobuf.ProtocolStringList + getByList() { + return by_; + } + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @return The count of by. + */ + public int getByCount() { + return by_.size(); + } + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the element to return. + * @return The by at the given index. + */ + public java.lang.String getBy(int index) { + return by_.get(index); + } + /** + *
+       *The names of the columns to group by.
+       *Required.
+       * 
+ * + * repeated string by = 1; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + public com.google.protobuf.ByteString + getByBytes(int index) { + return by_.getByteString(index); + } + + public static final int COLLAPSED_COLUMN_FIELD_NUMBER = 2; + private com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn collapsedColumn_; + /** + *
+       *The settings for the algorithm to create a collapsed column.
+       *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + * @return Whether the collapsedColumn field is set. + */ + @java.lang.Override + public boolean hasCollapsedColumn() { + return collapsedColumn_ != null; + } + /** + *
+       *The settings for the algorithm to create a collapsed column.
+       *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + * @return The collapsedColumn. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn getCollapsedColumn() { + return collapsedColumn_ == null ? com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.getDefaultInstance() : collapsedColumn_; + } + /** + *
+       *The settings for the algorithm to create a collapsed column.
+       *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder getCollapsedColumnOrBuilder() { + return getCollapsedColumn(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < by_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, by_.getRaw(i)); + } + if (collapsedColumn_ != null) { + output.writeMessage(2, getCollapsedColumn()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < by_.size(); i++) { + dataSize += computeStringSizeNoTag(by_.getRaw(i)); + } + size += dataSize; + size += 1 * getByList().size(); + } + if (collapsedColumn_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCollapsedColumn()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView.Group)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group other = (com.factset.protobuf.stach.v3.TableViewProto.TableView.Group) obj; + + if (!getByList() + .equals(other.getByList())) return false; + if (hasCollapsedColumn() != other.hasCollapsedColumn()) return false; + if (hasCollapsedColumn()) { + if (!getCollapsedColumn() + .equals(other.getCollapsedColumn())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getByCount() > 0) { + hash = (37 * hash) + BY_FIELD_NUMBER; + hash = (53 * hash) + getByList().hashCode(); + } + if (hasCollapsedColumn()) { + hash = (37 * hash) + COLLAPSED_COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getCollapsedColumn().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableViewProto.TableView.Group prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *An algorithm that groups tabular data by a set of columns and produces aggregate rows.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView.Group} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.TableView.Group) + com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Group_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Group_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (collapsedColumnBuilder_ == null) { + collapsedColumn_ = null; + } else { + collapsedColumn_ = null; + collapsedColumnBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Group_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group build() { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group buildPartial() { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group result = new com.factset.protobuf.stach.v3.TableViewProto.TableView.Group(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + by_ = by_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.by_ = by_; + if (collapsedColumnBuilder_ == null) { + result.collapsedColumn_ = collapsedColumn_; + } else { + result.collapsedColumn_ = collapsedColumnBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView.Group) { + return mergeFrom((com.factset.protobuf.stach.v3.TableViewProto.TableView.Group)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableViewProto.TableView.Group other) { + if (other == com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.getDefaultInstance()) return this; + if (!other.by_.isEmpty()) { + if (by_.isEmpty()) { + by_ = other.by_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureByIsMutable(); + by_.addAll(other.by_); + } + onChanged(); + } + if (other.hasCollapsedColumn()) { + mergeCollapsedColumn(other.getCollapsedColumn()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableViewProto.TableView.Group) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureByIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + by_ = new com.google.protobuf.LazyStringArrayList(by_); + bitField0_ |= 0x00000001; + } + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @return A list containing the by. + */ + public com.google.protobuf.ProtocolStringList + getByList() { + return by_.getUnmodifiableView(); + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @return The count of by. + */ + public int getByCount() { + return by_.size(); + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @param index The index of the element to return. + * @return The by at the given index. + */ + public java.lang.String getBy(int index) { + return by_.get(index); + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + public com.google.protobuf.ByteString + getByBytes(int index) { + return by_.getByteString(index); + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @param index The index to set the value at. + * @param value The by to set. + * @return This builder for chaining. + */ + public Builder setBy( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureByIsMutable(); + by_.set(index, value); + onChanged(); + return this; + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @param value The by to add. + * @return This builder for chaining. + */ + public Builder addBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureByIsMutable(); + by_.add(value); + onChanged(); + return this; + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @param values The by to add. + * @return This builder for chaining. + */ + public Builder addAllBy( + java.lang.Iterable values) { + ensureByIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, by_); + onChanged(); + return this; + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @return This builder for chaining. + */ + public Builder clearBy() { + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         *The names of the columns to group by.
+         *Required.
+         * 
+ * + * repeated string by = 1; + * @param value The bytes of the by to add. + * @return This builder for chaining. + */ + public Builder addByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureByIsMutable(); + by_.add(value); + onChanged(); + return this; + } + + private com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn collapsedColumn_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder> collapsedColumnBuilder_; + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + * @return Whether the collapsedColumn field is set. + */ + public boolean hasCollapsedColumn() { + return collapsedColumnBuilder_ != null || collapsedColumn_ != null; + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + * @return The collapsedColumn. + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn getCollapsedColumn() { + if (collapsedColumnBuilder_ == null) { + return collapsedColumn_ == null ? com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.getDefaultInstance() : collapsedColumn_; + } else { + return collapsedColumnBuilder_.getMessage(); + } + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + public Builder setCollapsedColumn(com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn value) { + if (collapsedColumnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + collapsedColumn_ = value; + onChanged(); + } else { + collapsedColumnBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + public Builder setCollapsedColumn( + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder builderForValue) { + if (collapsedColumnBuilder_ == null) { + collapsedColumn_ = builderForValue.build(); + onChanged(); + } else { + collapsedColumnBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + public Builder mergeCollapsedColumn(com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn value) { + if (collapsedColumnBuilder_ == null) { + if (collapsedColumn_ != null) { + collapsedColumn_ = + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.newBuilder(collapsedColumn_).mergeFrom(value).buildPartial(); + } else { + collapsedColumn_ = value; + } + onChanged(); + } else { + collapsedColumnBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + public Builder clearCollapsedColumn() { + if (collapsedColumnBuilder_ == null) { + collapsedColumn_ = null; + onChanged(); + } else { + collapsedColumn_ = null; + collapsedColumnBuilder_ = null; + } + + return this; + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder getCollapsedColumnBuilder() { + + onChanged(); + return getCollapsedColumnFieldBuilder().getBuilder(); + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder getCollapsedColumnOrBuilder() { + if (collapsedColumnBuilder_ != null) { + return collapsedColumnBuilder_.getMessageOrBuilder(); + } else { + return collapsedColumn_ == null ? + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.getDefaultInstance() : collapsedColumn_; + } + } + /** + *
+         *The settings for the algorithm to create a collapsed column.
+         *The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column.
+         *Optional.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView.CollapsedColumn collapsed_column = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder> + getCollapsedColumnFieldBuilder() { + if (collapsedColumnBuilder_ == null) { + collapsedColumnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder>( + getCollapsedColumn(), + getParentForChildren(), + isClean()); + collapsedColumn_ = null; + } + return collapsedColumnBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.TableView.Group) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.TableView.Group) + private static final com.factset.protobuf.stach.v3.TableViewProto.TableView.Group DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableViewProto.TableView.Group(); + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Group getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Group parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Group(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CollapsedColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.TableView.CollapsedColumn) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The alias of the collapsed column.
+       *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The alias. + */ + java.lang.String getAlias(); + /** + *
+       *The alias of the collapsed column.
+       *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The bytes for alias. + */ + com.google.protobuf.ByteString + getAliasBytes(); + } + /** + *
+     *A virtual collapsed column.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView.CollapsedColumn} + */ + public static final class CollapsedColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.TableView.CollapsedColumn) + CollapsedColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use CollapsedColumn.newBuilder() to construct. + private CollapsedColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CollapsedColumn() { + alias_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollapsedColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CollapsedColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder.class); + } + + public static final int ALIAS_FIELD_NUMBER = 1; + private volatile java.lang.Object alias_; + /** + *
+       *The alias of the collapsed column.
+       *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + /** + *
+       *The alias of the collapsed column.
+       *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn other = (com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn) obj; + + if (!getAlias() + .equals(other.getAlias())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A virtual collapsed column.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView.CollapsedColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.TableView.CollapsedColumn) + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + alias_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn build() { + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn buildPartial() { + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn result = new com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn(this); + result.alias_ = alias_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn) { + return mergeFrom((com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn other) { + if (other == com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn.getDefaultInstance()) return this; + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object alias_ = ""; + /** + *
+         *The alias of the collapsed column.
+         *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The alias of the collapsed column.
+         *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The alias of the collapsed column.
+         *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + /** + *
+         *The alias of the collapsed column.
+         *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @return This builder for chaining. + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + /** + *
+         *The alias of the collapsed column.
+         *The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.TableView.CollapsedColumn) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.TableView.CollapsedColumn) + private static final com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn(); + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollapsedColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CollapsedColumn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.CollapsedColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SplitOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.TableView.Split) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The alias of the columns generated by the split algorithm.
+       *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The alias. + */ + java.lang.String getAlias(); + /** + *
+       *The alias of the columns generated by the split algorithm.
+       *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The bytes for alias. + */ + com.google.protobuf.ByteString + getAliasBytes(); + + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @return A list containing the by. + */ + java.util.List + getByList(); + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @return The count of by. + */ + int getByCount(); + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @param index The index of the element to return. + * @return The by at the given index. + */ + java.lang.String getBy(int index); + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + com.google.protobuf.ByteString + getByBytes(int index); + + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @return A list containing the include. + */ + java.util.List + getIncludeList(); + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @return The count of include. + */ + int getIncludeCount(); + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @param index The index of the element to return. + * @return The include at the given index. + */ + java.lang.String getInclude(int index); + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @param index The index of the value to return. + * @return The bytes of the include at the given index. + */ + com.google.protobuf.ByteString + getIncludeBytes(int index); + + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @return A list containing the over. + */ + java.util.List + getOverList(); + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @return The count of over. + */ + int getOverCount(); + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @param index The index of the element to return. + * @return The over at the given index. + */ + java.lang.String getOver(int index); + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @param index The index of the value to return. + * @return The bytes of the over at the given index. + */ + com.google.protobuf.ByteString + getOverBytes(int index); + + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + int getHeadersCount(); + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + boolean containsHeaders( + java.lang.String key); + /** + * Use {@link #getHeadersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHeaders(); + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + java.util.Map + getHeadersMap(); + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + + java.lang.String getHeadersOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + + java.lang.String getHeadersOrThrow( + java.lang.String key); + + /** + *
+       *Whether to remove empty split columns or not.
+       *Default is `false`.
+       *Optional.
+       * 
+ * + * bool remove_empty_split_columns = 6; + * @return The removeEmptySplitColumns. + */ + boolean getRemoveEmptySplitColumns(); + } + /** + *
+     *An algorithm that vertically splits tabular data and produces a column for each unique value in the columns that were split over.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView.Split} + */ + public static final class Split extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.TableView.Split) + SplitOrBuilder { + private static final long serialVersionUID = 0L; + // Use Split.newBuilder() to construct. + private Split(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Split() { + alias_ = ""; + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + include_ = com.google.protobuf.LazyStringArrayList.EMPTY; + over_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Split(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Split( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + by_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + by_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + include_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + include_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + over_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + over_.add(s); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + headers_ = com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + headers__ = input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + headers_.getMutableMap().put( + headers__.getKey(), headers__.getValue()); + break; + } + case 48: { + + removeEmptySplitColumns_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + by_ = by_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + include_ = include_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + over_ = over_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Split_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetHeaders(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Split_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder.class); + } + + public static final int ALIAS_FIELD_NUMBER = 1; + private volatile java.lang.Object alias_; + /** + *
+       *The alias of the columns generated by the split algorithm.
+       *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + /** + *
+       *The alias of the columns generated by the split algorithm.
+       *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+       *Required.
+       * 
+ * + * string alias = 1; + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BY_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList by_; + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @return A list containing the by. + */ + public com.google.protobuf.ProtocolStringList + getByList() { + return by_; + } + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @return The count of by. + */ + public int getByCount() { + return by_.size(); + } + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @param index The index of the element to return. + * @return The by at the given index. + */ + public java.lang.String getBy(int index) { + return by_.get(index); + } + /** + *
+       *The names of columns to split by.
+       *Required.
+       * 
+ * + * repeated string by = 2; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + public com.google.protobuf.ByteString + getByBytes(int index) { + return by_.getByteString(index); + } + + public static final int INCLUDE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList include_; + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @return A list containing the include. + */ + public com.google.protobuf.ProtocolStringList + getIncludeList() { + return include_; + } + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @return The count of include. + */ + public int getIncludeCount() { + return include_.size(); + } + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @param index The index of the element to return. + * @return The include at the given index. + */ + public java.lang.String getInclude(int index) { + return include_.get(index); + } + /** + *
+       *The names of columns to include in the multi-level headers table when splitting.
+       *Optional.
+       * 
+ * + * repeated string include = 3; + * @param index The index of the value to return. + * @return The bytes of the include at the given index. + */ + public com.google.protobuf.ByteString + getIncludeBytes(int index) { + return include_.getByteString(index); + } + + public static final int OVER_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList over_; + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @return A list containing the over. + */ + public com.google.protobuf.ProtocolStringList + getOverList() { + return over_; + } + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @return The count of over. + */ + public int getOverCount() { + return over_.size(); + } + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @param index The index of the element to return. + * @return The over at the given index. + */ + public java.lang.String getOver(int index) { + return over_.get(index); + } + /** + *
+       *The names of columns to split over.
+       *Required.
+       * 
+ * + * repeated string over = 4; + * @param index The index of the value to return. + * @return The bytes of the over at the given index. + */ + public com.google.protobuf.ByteString + getOverBytes(int index) { + return over_.getByteString(index); + } + + public static final int HEADERS_FIELD_NUMBER = 5; + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Split_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> headers_; + private com.google.protobuf.MapField + internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + + @java.lang.Override + public boolean containsHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHeaders().getMap().containsKey(key); + } + /** + * Use {@link #getHeadersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + @java.lang.Override + + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + @java.lang.Override + + public java.lang.String getHeadersOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       *The human-readable header values of `over` columns to be applied.
+       *Key is the column name, and value is the human-readable value.
+       *Optional.
+       * 
+ * + * map<string, string> headers = 5; + */ + @java.lang.Override + + public java.lang.String getHeadersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int REMOVE_EMPTY_SPLIT_COLUMNS_FIELD_NUMBER = 6; + private boolean removeEmptySplitColumns_; + /** + *
+       *Whether to remove empty split columns or not.
+       *Default is `false`.
+       *Optional.
+       * 
+ * + * bool remove_empty_split_columns = 6; + * @return The removeEmptySplitColumns. + */ + @java.lang.Override + public boolean getRemoveEmptySplitColumns() { + return removeEmptySplitColumns_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); + } + for (int i = 0; i < by_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, by_.getRaw(i)); + } + for (int i = 0; i < include_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, include_.getRaw(i)); + } + for (int i = 0; i < over_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, over_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHeaders(), + HeadersDefaultEntryHolder.defaultEntry, + 5); + if (removeEmptySplitColumns_ != false) { + output.writeBool(6, removeEmptySplitColumns_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); + } + { + int dataSize = 0; + for (int i = 0; i < by_.size(); i++) { + dataSize += computeStringSizeNoTag(by_.getRaw(i)); + } + size += dataSize; + size += 1 * getByList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < include_.size(); i++) { + dataSize += computeStringSizeNoTag(include_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < over_.size(); i++) { + dataSize += computeStringSizeNoTag(over_.getRaw(i)); + } + size += dataSize; + size += 1 * getOverList().size(); + } + for (java.util.Map.Entry entry + : internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry + headers__ = HeadersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, headers__); + } + if (removeEmptySplitColumns_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, removeEmptySplitColumns_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView.Split)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split other = (com.factset.protobuf.stach.v3.TableViewProto.TableView.Split) obj; + + if (!getAlias() + .equals(other.getAlias())) return false; + if (!getByList() + .equals(other.getByList())) return false; + if (!getIncludeList() + .equals(other.getIncludeList())) return false; + if (!getOverList() + .equals(other.getOverList())) return false; + if (!internalGetHeaders().equals( + other.internalGetHeaders())) return false; + if (getRemoveEmptySplitColumns() + != other.getRemoveEmptySplitColumns()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + if (getByCount() > 0) { + hash = (37 * hash) + BY_FIELD_NUMBER; + hash = (53 * hash) + getByList().hashCode(); + } + if (getIncludeCount() > 0) { + hash = (37 * hash) + INCLUDE_FIELD_NUMBER; + hash = (53 * hash) + getIncludeList().hashCode(); + } + if (getOverCount() > 0) { + hash = (37 * hash) + OVER_FIELD_NUMBER; + hash = (53 * hash) + getOverList().hashCode(); + } + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + hash = (37 * hash) + REMOVE_EMPTY_SPLIT_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRemoveEmptySplitColumns()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableViewProto.TableView.Split prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *An algorithm that vertically splits tabular data and produces a column for each unique value in the columns that were split over.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView.Split} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.TableView.Split) + com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Split_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetHeaders(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableHeaders(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Split_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + alias_ = ""; + + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + include_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + over_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableHeaders().clear(); + removeEmptySplitColumns_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_Split_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split build() { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split buildPartial() { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split result = new com.factset.protobuf.stach.v3.TableViewProto.TableView.Split(this); + int from_bitField0_ = bitField0_; + result.alias_ = alias_; + if (((bitField0_ & 0x00000001) != 0)) { + by_ = by_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.by_ = by_; + if (((bitField0_ & 0x00000002) != 0)) { + include_ = include_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.include_ = include_; + if (((bitField0_ & 0x00000004) != 0)) { + over_ = over_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.over_ = over_; + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + result.removeEmptySplitColumns_ = removeEmptySplitColumns_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView.Split) { + return mergeFrom((com.factset.protobuf.stach.v3.TableViewProto.TableView.Split)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableViewProto.TableView.Split other) { + if (other == com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.getDefaultInstance()) return this; + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + if (!other.by_.isEmpty()) { + if (by_.isEmpty()) { + by_ = other.by_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureByIsMutable(); + by_.addAll(other.by_); + } + onChanged(); + } + if (!other.include_.isEmpty()) { + if (include_.isEmpty()) { + include_ = other.include_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncludeIsMutable(); + include_.addAll(other.include_); + } + onChanged(); + } + if (!other.over_.isEmpty()) { + if (over_.isEmpty()) { + over_ = other.over_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOverIsMutable(); + over_.addAll(other.over_); + } + onChanged(); + } + internalGetMutableHeaders().mergeFrom( + other.internalGetHeaders()); + if (other.getRemoveEmptySplitColumns() != false) { + setRemoveEmptySplitColumns(other.getRemoveEmptySplitColumns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableViewProto.TableView.Split) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object alias_ = ""; + /** + *
+         *The alias of the columns generated by the split algorithm.
+         *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The alias of the columns generated by the split algorithm.
+         *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The alias of the columns generated by the split algorithm.
+         *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + /** + *
+         *The alias of the columns generated by the split algorithm.
+         *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @return This builder for chaining. + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + /** + *
+         *The alias of the columns generated by the split algorithm.
+         *A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary.
+         *Required.
+         * 
+ * + * string alias = 1; + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureByIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + by_ = new com.google.protobuf.LazyStringArrayList(by_); + bitField0_ |= 0x00000001; + } + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @return A list containing the by. + */ + public com.google.protobuf.ProtocolStringList + getByList() { + return by_.getUnmodifiableView(); + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @return The count of by. + */ + public int getByCount() { + return by_.size(); + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @param index The index of the element to return. + * @return The by at the given index. + */ + public java.lang.String getBy(int index) { + return by_.get(index); + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @param index The index of the value to return. + * @return The bytes of the by at the given index. + */ + public com.google.protobuf.ByteString + getByBytes(int index) { + return by_.getByteString(index); + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @param index The index to set the value at. + * @param value The by to set. + * @return This builder for chaining. + */ + public Builder setBy( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureByIsMutable(); + by_.set(index, value); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @param value The by to add. + * @return This builder for chaining. + */ + public Builder addBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureByIsMutable(); + by_.add(value); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @param values The by to add. + * @return This builder for chaining. + */ + public Builder addAllBy( + java.lang.Iterable values) { + ensureByIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, by_); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @return This builder for chaining. + */ + public Builder clearBy() { + by_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split by.
+         *Required.
+         * 
+ * + * repeated string by = 2; + * @param value The bytes of the by to add. + * @return This builder for chaining. + */ + public Builder addByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureByIsMutable(); + by_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList include_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIncludeIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + include_ = new com.google.protobuf.LazyStringArrayList(include_); + bitField0_ |= 0x00000002; + } + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @return A list containing the include. + */ + public com.google.protobuf.ProtocolStringList + getIncludeList() { + return include_.getUnmodifiableView(); + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @return The count of include. + */ + public int getIncludeCount() { + return include_.size(); + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @param index The index of the element to return. + * @return The include at the given index. + */ + public java.lang.String getInclude(int index) { + return include_.get(index); + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @param index The index of the value to return. + * @return The bytes of the include at the given index. + */ + public com.google.protobuf.ByteString + getIncludeBytes(int index) { + return include_.getByteString(index); + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @param index The index to set the value at. + * @param value The include to set. + * @return This builder for chaining. + */ + public Builder setInclude( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeIsMutable(); + include_.set(index, value); + onChanged(); + return this; + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @param value The include to add. + * @return This builder for chaining. + */ + public Builder addInclude( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeIsMutable(); + include_.add(value); + onChanged(); + return this; + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @param values The include to add. + * @return This builder for chaining. + */ + public Builder addAllInclude( + java.lang.Iterable values) { + ensureIncludeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, include_); + onChanged(); + return this; + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @return This builder for chaining. + */ + public Builder clearInclude() { + include_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         *The names of columns to include in the multi-level headers table when splitting.
+         *Optional.
+         * 
+ * + * repeated string include = 3; + * @param value The bytes of the include to add. + * @return This builder for chaining. + */ + public Builder addIncludeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeIsMutable(); + include_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList over_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureOverIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + over_ = new com.google.protobuf.LazyStringArrayList(over_); + bitField0_ |= 0x00000004; + } + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @return A list containing the over. + */ + public com.google.protobuf.ProtocolStringList + getOverList() { + return over_.getUnmodifiableView(); + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @return The count of over. + */ + public int getOverCount() { + return over_.size(); + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @param index The index of the element to return. + * @return The over at the given index. + */ + public java.lang.String getOver(int index) { + return over_.get(index); + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @param index The index of the value to return. + * @return The bytes of the over at the given index. + */ + public com.google.protobuf.ByteString + getOverBytes(int index) { + return over_.getByteString(index); + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @param index The index to set the value at. + * @param value The over to set. + * @return This builder for chaining. + */ + public Builder setOver( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverIsMutable(); + over_.set(index, value); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @param value The over to add. + * @return This builder for chaining. + */ + public Builder addOver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverIsMutable(); + over_.add(value); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @param values The over to add. + * @return This builder for chaining. + */ + public Builder addAllOver( + java.lang.Iterable values) { + ensureOverIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, over_); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @return This builder for chaining. + */ + public Builder clearOver() { + over_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         *The names of columns to split over.
+         *Required.
+         * 
+ * + * repeated string over = 4; + * @param value The bytes of the over to add. + * @return This builder for chaining. + */ + public Builder addOverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOverIsMutable(); + over_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> headers_; + private com.google.protobuf.MapField + internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + private com.google.protobuf.MapField + internalGetMutableHeaders() { + onChanged();; + if (headers_ == null) { + headers_ = com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + + @java.lang.Override + public boolean containsHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHeaders().getMap().containsKey(key); + } + /** + * Use {@link #getHeadersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + @java.lang.Override + + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + @java.lang.Override + + public java.lang.String getHeadersOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + @java.lang.Override + + public java.lang.String getHeadersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + internalGetMutableHeaders().getMutableMap() + .clear(); + return this; + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + + public Builder removeHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHeaders().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableHeaders() { + return internalGetMutableHeaders().getMutableMap(); + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + public Builder putHeaders( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHeaders().getMutableMap() + .put(key, value); + return this; + } + /** + *
+         *The human-readable header values of `over` columns to be applied.
+         *Key is the column name, and value is the human-readable value.
+         *Optional.
+         * 
+ * + * map<string, string> headers = 5; + */ + + public Builder putAllHeaders( + java.util.Map values) { + internalGetMutableHeaders().getMutableMap() + .putAll(values); + return this; + } + + private boolean removeEmptySplitColumns_ ; + /** + *
+         *Whether to remove empty split columns or not.
+         *Default is `false`.
+         *Optional.
+         * 
+ * + * bool remove_empty_split_columns = 6; + * @return The removeEmptySplitColumns. + */ + @java.lang.Override + public boolean getRemoveEmptySplitColumns() { + return removeEmptySplitColumns_; + } + /** + *
+         *Whether to remove empty split columns or not.
+         *Default is `false`.
+         *Optional.
+         * 
+ * + * bool remove_empty_split_columns = 6; + * @param value The removeEmptySplitColumns to set. + * @return This builder for chaining. + */ + public Builder setRemoveEmptySplitColumns(boolean value) { + + removeEmptySplitColumns_ = value; + onChanged(); + return this; + } + /** + *
+         *Whether to remove empty split columns or not.
+         *Default is `false`.
+         *Optional.
+         * 
+ * + * bool remove_empty_split_columns = 6; + * @return This builder for chaining. + */ + public Builder clearRemoveEmptySplitColumns() { + + removeEmptySplitColumns_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.TableView.Split) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.TableView.Split) + private static final com.factset.protobuf.stach.v3.TableViewProto.TableView.Split DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableViewProto.TableView.Split(); + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView.Split getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Split parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Split(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + *
+     *The human readable display name for the table.
+     *Optional.
+     * 
+ * + * string display_name = 1; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+     *The human readable display name for the table.
+     *Optional.
+     * 
+ * + * string display_name = 1; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList columns_; + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList + getColumnsList() { + return columns_; + } + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + /** + *
+     *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+     *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+     *Required.
+     * 
+ * + * repeated string columns = 2; + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString + getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + public static final int HEADERS_FIELD_NUMBER = 3; + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> headers_; + private com.google.protobuf.MapField + internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + + @java.lang.Override + public boolean containsHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHeaders().getMap().containsKey(key); + } + /** + * Use {@link #getHeadersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + @java.lang.Override + + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + @java.lang.Override + + public java.lang.String getHeadersOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     *The human-readable header values of columns to be applied.
+     *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+     *Optional.
+     * 
+ * + * map<string, string> headers = 3; + */ + @java.lang.Override + + public java.lang.String getHeadersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int GROUP_FIELD_NUMBER = 4; + private com.factset.protobuf.stach.v3.TableViewProto.TableView.Group group_; + /** + *
+     *The group algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + * @return Whether the group field is set. + */ + @java.lang.Override + public boolean hasGroup() { + return group_ != null; + } + /** + *
+     *The group algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + * @return The group. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group getGroup() { + return group_ == null ? com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.getDefaultInstance() : group_; + } + /** + *
+     *The group algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder getGroupOrBuilder() { + return getGroup(); + } + + public static final int SPLIT_FIELD_NUMBER = 5; + private com.factset.protobuf.stach.v3.TableViewProto.TableView.Split split_; + /** + *
+     *The split algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + * @return Whether the split field is set. + */ + @java.lang.Override + public boolean hasSplit() { + return split_ != null; + } + /** + *
+     *The split algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + * @return The split. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split getSplit() { + return split_ == null ? com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.getDefaultInstance() : split_; + } + /** + *
+     *The split algorithm to be applied.
+     *Optional.
+     * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder getSplitOrBuilder() { + return getSplit(); + } + + public static final int CUSTOM_METADATA_FIELD_NUMBER = 100; + private static final class CustomMetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_CustomMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     *The custom metadata.
+     *Optional.
+     * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + for (int i = 0; i < columns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columns_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHeaders(), + HeadersDefaultEntryHolder.defaultEntry, + 3); + if (group_ != null) { + output.writeMessage(4, getGroup()); + } + if (split_ != null) { + output.writeMessage(5, getSplit()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCustomMetadata(), + CustomMetadataDefaultEntryHolder.defaultEntry, + 100); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + { + int dataSize = 0; + for (int i = 0; i < columns_.size(); i++) { + dataSize += computeStringSizeNoTag(columns_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnsList().size(); + } + for (java.util.Map.Entry entry + : internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry + headers__ = HeadersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, headers__); + } + if (group_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGroup()); + } + if (split_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSplit()); + } + for (java.util.Map.Entry entry + : internalGetCustomMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + customMetadata__ = CustomMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, customMetadata__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.TableViewProto.TableView other = (com.factset.protobuf.stach.v3.TableViewProto.TableView) obj; + + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getColumnsList() + .equals(other.getColumnsList())) return false; + if (!internalGetHeaders().equals( + other.internalGetHeaders())) return false; + if (hasGroup() != other.hasGroup()) return false; + if (hasGroup()) { + if (!getGroup() + .equals(other.getGroup())) return false; + } + if (hasSplit() != other.hasSplit()) return false; + if (hasSplit()) { + if (!getSplit() + .equals(other.getSplit())) return false; + } + if (!internalGetCustomMetadata().equals( + other.internalGetCustomMetadata())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + if (hasGroup()) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + } + if (hasSplit()) { + hash = (37 * hash) + SPLIT_FIELD_NUMBER; + hash = (53 * hash) + getSplit().hashCode(); + } + if (!internalGetCustomMetadata().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.TableViewProto.TableView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.TableViewProto.TableView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     *A set of metadata specifying the settings that instruct how to turn tabular data into a rendered table.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.TableView} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.TableView) + com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetHeaders(); + case 100: + return internalGetCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableHeaders(); + case 100: + return internalGetMutableCustomMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.TableViewProto.TableView.class, com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.TableViewProto.TableView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + columns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableHeaders().clear(); + if (groupBuilder_ == null) { + group_ = null; + } else { + group_ = null; + groupBuilder_ = null; + } + if (splitBuilder_ == null) { + split_ = null; + } else { + split_ = null; + splitBuilder_ = null; + } + internalGetMutableCustomMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.TableViewProto.internal_static_factset_protobuf_stach_v3_TableView_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView build() { + com.factset.protobuf.stach.v3.TableViewProto.TableView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView buildPartial() { + com.factset.protobuf.stach.v3.TableViewProto.TableView result = new com.factset.protobuf.stach.v3.TableViewProto.TableView(this); + int from_bitField0_ = bitField0_; + result.displayName_ = displayName_; + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = columns_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + if (groupBuilder_ == null) { + result.group_ = group_; + } else { + result.group_ = groupBuilder_.build(); + } + if (splitBuilder_ == null) { + result.split_ = split_; + } else { + result.split_ = splitBuilder_.build(); + } + result.customMetadata_ = internalGetCustomMetadata(); + result.customMetadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.TableViewProto.TableView) { + return mergeFrom((com.factset.protobuf.stach.v3.TableViewProto.TableView)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.TableViewProto.TableView other) { + if (other == com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + internalGetMutableHeaders().mergeFrom( + other.internalGetHeaders()); + if (other.hasGroup()) { + mergeGroup(other.getGroup()); + } + if (other.hasSplit()) { + mergeSplit(other.getSplit()); + } + internalGetMutableCustomMetadata().mergeFrom( + other.internalGetCustomMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.TableViewProto.TableView parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.TableViewProto.TableView) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + *
+       *The human readable display name for the table.
+       *Optional.
+       * 
+ * + * string display_name = 1; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *The human readable display name for the table.
+       *Optional.
+       * 
+ * + * string display_name = 1; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *The human readable display name for the table.
+       *Optional.
+       * 
+ * + * string display_name = 1; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       *The human readable display name for the table.
+       *Optional.
+       * 
+ * + * string display_name = 1; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       *The human readable display name for the table.
+       *Optional.
+       * 
+ * + * string display_name = 1; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList columns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new com.google.protobuf.LazyStringArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList + getColumnsList() { + return columns_.getUnmodifiableView(); + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString + getColumnsBytes(int index) { + return columns_.getByteString(index); + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @param index The index to set the value at. + * @param value The columns to set. + * @return This builder for chaining. + */ + public Builder setColumns( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @param value The columns to add. + * @return This builder for chaining. + */ + public Builder addColumns( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + return this; + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @param values The columns to add. + * @return This builder for chaining. + */ + public Builder addAllColumns( + java.lang.Iterable values) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + return this; + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @return This builder for chaining. + */ + public Builder clearColumns() { + columns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       *The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns.
+       *An empty array will display no columns. The order of the column names is the order the columns will be displayed.
+       *Required.
+       * 
+ * + * repeated string columns = 2; + * @param value The bytes of the columns to add. + * @return This builder for chaining. + */ + public Builder addColumnsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> headers_; + private com.google.protobuf.MapField + internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + private com.google.protobuf.MapField + internalGetMutableHeaders() { + onChanged();; + if (headers_ == null) { + headers_ = com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + + @java.lang.Override + public boolean containsHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHeaders().getMap().containsKey(key); + } + /** + * Use {@link #getHeadersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + @java.lang.Override + + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + @java.lang.Override + + public java.lang.String getHeadersOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + @java.lang.Override + + public java.lang.String getHeadersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + internalGetMutableHeaders().getMutableMap() + .clear(); + return this; + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + + public Builder removeHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHeaders().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableHeaders() { + return internalGetMutableHeaders().getMutableMap(); + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder putHeaders( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHeaders().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       *The human-readable header values of columns to be applied.
+       *Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }`
+       *Optional.
+       * 
+ * + * map<string, string> headers = 3; + */ + + public Builder putAllHeaders( + java.util.Map values) { + internalGetMutableHeaders().getMutableMap() + .putAll(values); + return this; + } + + private com.factset.protobuf.stach.v3.TableViewProto.TableView.Group group_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group, com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder> groupBuilder_; + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + * @return Whether the group field is set. + */ + public boolean hasGroup() { + return groupBuilder_ != null || group_ != null; + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + * @return The group. + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group getGroup() { + if (groupBuilder_ == null) { + return group_ == null ? com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.getDefaultInstance() : group_; + } else { + return groupBuilder_.getMessage(); + } + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + public Builder setGroup(com.factset.protobuf.stach.v3.TableViewProto.TableView.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + onChanged(); + } else { + groupBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + public Builder setGroup( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + group_ = builderForValue.build(); + onChanged(); + } else { + groupBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + public Builder mergeGroup(com.factset.protobuf.stach.v3.TableViewProto.TableView.Group value) { + if (groupBuilder_ == null) { + if (group_ != null) { + group_ = + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.newBuilder(group_).mergeFrom(value).buildPartial(); + } else { + group_ = value; + } + onChanged(); + } else { + groupBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + public Builder clearGroup() { + if (groupBuilder_ == null) { + group_ = null; + onChanged(); + } else { + group_ = null; + groupBuilder_ = null; + } + + return this; + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder getGroupBuilder() { + + onChanged(); + return getGroupFieldBuilder().getBuilder(); + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder getGroupOrBuilder() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilder(); + } else { + return group_ == null ? + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.getDefaultInstance() : group_; + } + } + /** + *
+       *The group algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Group group = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group, com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.Group, com.factset.protobuf.stach.v3.TableViewProto.TableView.Group.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.GroupOrBuilder>( + getGroup(), + getParentForChildren(), + isClean()); + group_ = null; + } + return groupBuilder_; + } + + private com.factset.protobuf.stach.v3.TableViewProto.TableView.Split split_; + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split, com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder> splitBuilder_; + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + * @return Whether the split field is set. + */ + public boolean hasSplit() { + return splitBuilder_ != null || split_ != null; + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + * @return The split. + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split getSplit() { + if (splitBuilder_ == null) { + return split_ == null ? com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.getDefaultInstance() : split_; + } else { + return splitBuilder_.getMessage(); + } + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + public Builder setSplit(com.factset.protobuf.stach.v3.TableViewProto.TableView.Split value) { + if (splitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + split_ = value; + onChanged(); + } else { + splitBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + public Builder setSplit( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder builderForValue) { + if (splitBuilder_ == null) { + split_ = builderForValue.build(); + onChanged(); + } else { + splitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + public Builder mergeSplit(com.factset.protobuf.stach.v3.TableViewProto.TableView.Split value) { + if (splitBuilder_ == null) { + if (split_ != null) { + split_ = + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.newBuilder(split_).mergeFrom(value).buildPartial(); + } else { + split_ = value; + } + onChanged(); + } else { + splitBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + public Builder clearSplit() { + if (splitBuilder_ == null) { + split_ = null; + onChanged(); + } else { + split_ = null; + splitBuilder_ = null; + } + + return this; + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder getSplitBuilder() { + + onChanged(); + return getSplitFieldBuilder().getBuilder(); + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder getSplitOrBuilder() { + if (splitBuilder_ != null) { + return splitBuilder_.getMessageOrBuilder(); + } else { + return split_ == null ? + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.getDefaultInstance() : split_; + } + } + /** + *
+       *The split algorithm to be applied.
+       *Optional.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView.Split split = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split, com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder> + getSplitFieldBuilder() { + if (splitBuilder_ == null) { + splitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView.Split, com.factset.protobuf.stach.v3.TableViewProto.TableView.Split.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableView.SplitOrBuilder>( + getSplit(), + getParentForChildren(), + isClean()); + split_ = null; + } + return splitBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem> customMetadata_; + private com.google.protobuf.MapField + internalGetCustomMetadata() { + if (customMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + return customMetadata_; + } + private com.google.protobuf.MapField + internalGetMutableCustomMetadata() { + onChanged();; + if (customMetadata_ == null) { + customMetadata_ = com.google.protobuf.MapField.newMapField( + CustomMetadataDefaultEntryHolder.defaultEntry); + } + if (!customMetadata_.isMutable()) { + customMetadata_ = customMetadata_.copy(); + } + return customMetadata_; + } + + public int getCustomMetadataCount() { + return internalGetCustomMetadata().getMap().size(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + @java.lang.Override + public boolean containsCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCustomMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getCustomMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomMetadata() { + return getCustomMetadataMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public java.util.Map getCustomMetadataMap() { + return internalGetCustomMetadata().getMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrDefault( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + @java.lang.Override + + public com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem getCustomMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCustomMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomMetadata() { + internalGetMutableCustomMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder removeCustomMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomMetadata() { + return internalGetMutableCustomMetadata().getMutableMap(); + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + public Builder putCustomMetadata( + java.lang.String key, + com.factset.protobuf.stach.v3.MetadataItemProto.MetadataItem value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCustomMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       *The custom metadata.
+       *Optional.
+       * 
+ * + * map<string, .factset.protobuf.stach.v3.MetadataItem> custom_metadata = 100; + */ + + public Builder putAllCustomMetadata( + java.util.Map values) { + internalGetMutableCustomMetadata().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.TableView) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.TableView) + private static final com.factset.protobuf.stach.v3.TableViewProto.TableView DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.TableViewProto.TableView(); + } + + public static com.factset.protobuf.stach.v3.TableViewProto.TableView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableView(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_Group_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_Group_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_CollapsedColumn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_Split_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_Split_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_Split_HeadersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_Split_HeadersEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_HeadersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_HeadersEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_TableView_CustomMetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_TableView_CustomMetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%fds/protobuf/stach/v3/TableView.proto\022" + + "\031factset.protobuf.stach.v3\032(fds/protobuf" + + "/stach/v3/MetadataItem.proto\"\270\006\n\tTableVi" + + "ew\022\024\n\014display_name\030\001 \001(\t\022\017\n\007columns\030\002 \003(" + + "\t\022B\n\007headers\030\003 \003(\01321.factset.protobuf.st" + + "ach.v3.TableView.HeadersEntry\0229\n\005group\030\004" + + " \001(\0132*.factset.protobuf.stach.v3.TableVi" + + "ew.Group\0229\n\005split\030\005 \001(\0132*.factset.protob" + + "uf.stach.v3.TableView.Split\022Q\n\017custom_me" + + "tadata\030d \003(\01328.factset.protobuf.stach.v3" + + ".TableView.CustomMetadataEntry\032c\n\005Group\022" + + "\n\n\002by\030\001 \003(\t\022N\n\020collapsed_column\030\002 \001(\01324." + + "factset.protobuf.stach.v3.TableView.Coll" + + "apsedColumn\032 \n\017CollapsedColumn\022\r\n\005alias\030" + + "\001 \001(\t\032\337\001\n\005Split\022\r\n\005alias\030\001 \001(\t\022\n\n\002by\030\002 \003" + + "(\t\022\017\n\007include\030\003 \003(\t\022\014\n\004over\030\004 \003(\t\022H\n\007hea" + + "ders\030\005 \003(\01327.factset.protobuf.stach.v3.T" + + "ableView.Split.HeadersEntry\022\"\n\032remove_em" + + "pty_split_columns\030\006 \001(\010\032.\n\014HeadersEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032.\n\014Heade" + + "rsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "^\n\023CustomMetadataEntry\022\013\n\003key\030\001 \001(\t\0226\n\005v" + + "alue\030\002 \001(\0132\'.factset.protobuf.stach.v3.M" + + "etadataItem:\0028\001B\211\001\n\035com.factset.protobuf" + + ".stach.v3B\016TableViewProtoZ + *The views. + *The first view is considered the default view when rendering the table. + *Required. + * + * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + java.util.List + getViewsList(); + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + com.factset.protobuf.stach.v3.ViewsProto.Views.View getViews(int index); + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + int getViewsCount(); + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + java.util.List + getViewsOrBuilderList(); + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder getViewsOrBuilder( + int index); + } + /** + *
+   *A set of a metadata specifying one or more views for rendering a table.
+   * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Views} + */ + public static final class Views extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Views) + ViewsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Views.newBuilder() to construct. + private Views(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Views() { + views_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Views(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Views( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + views_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + views_.add( + input.readMessage(com.factset.protobuf.stach.v3.ViewsProto.Views.View.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + views_ = java.util.Collections.unmodifiableList(views_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.ViewsProto.Views.class, com.factset.protobuf.stach.v3.ViewsProto.Views.Builder.class); + } + + public interface ViewOrBuilder extends + // @@protoc_insertion_point(interface_extends:factset.protobuf.stach.v3.Views.View) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *The name of the view.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+       *The name of the view.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       *The display name that describes the type of view.
+       *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+       *Optional.
+       * 
+ * + * string display_name = 2; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+       *The display name that describes the type of view.
+       *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+       *Optional.
+       * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+       *The instructions to render tabular data into a rendered table.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + * @return Whether the table field is set. + */ + boolean hasTable(); + /** + *
+       *The instructions to render tabular data into a rendered table.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + * @return The table. + */ + com.factset.protobuf.stach.v3.TableViewProto.TableView getTable(); + /** + *
+       *The instructions to render tabular data into a rendered table.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder getTableOrBuilder(); + + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.TypeCase getTypeCase(); + } + /** + *
+     *A view for rendering a table.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Views.View} + */ + public static final class View extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:factset.protobuf.stach.v3.Views.View) + ViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use View.newBuilder() to construct. + private View(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private View() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new View(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private View( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((com.factset.protobuf.stach.v3.TableViewProto.TableView) type_).toBuilder(); + } + type_ = + input.readMessage(com.factset.protobuf.stach.v3.TableViewProto.TableView.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.factset.protobuf.stach.v3.TableViewProto.TableView) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_View_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_View_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.ViewsProto.Views.View.class, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TABLE(3), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 3: return TABLE; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       *The name of the view.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+       *The name of the view.
+       *Required.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *
+       *The display name that describes the type of view.
+       *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+       *Optional.
+       * 
+ * + * string display_name = 2; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+       *The display name that describes the type of view.
+       *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+       *Optional.
+       * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FIELD_NUMBER = 3; + /** + *
+       *The instructions to render tabular data into a rendered table.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + * @return Whether the table field is set. + */ + @java.lang.Override + public boolean hasTable() { + return typeCase_ == 3; + } + /** + *
+       *The instructions to render tabular data into a rendered table.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + * @return The table. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView getTable() { + if (typeCase_ == 3) { + return (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_; + } + return com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } + /** + *
+       *The instructions to render tabular data into a rendered table.
+       * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder getTableOrBuilder() { + if (typeCase_ == 3) { + return (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_; + } + return com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.ViewsProto.Views.View)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.ViewsProto.Views.View other = (com.factset.protobuf.stach.v3.ViewsProto.Views.View) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 3: + if (!getTable() + .equals(other.getTable())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + switch (typeCase_) { + case 3: + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.ViewsProto.Views.View prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       *A view for rendering a table.
+       * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Views.View} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Views.View) + com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_View_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_View_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.ViewsProto.Views.View.class, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.ViewsProto.Views.View.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_View_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.View getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.ViewsProto.Views.View.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.View build() { + com.factset.protobuf.stach.v3.ViewsProto.Views.View result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.View buildPartial() { + com.factset.protobuf.stach.v3.ViewsProto.Views.View result = new com.factset.protobuf.stach.v3.ViewsProto.Views.View(this); + result.name_ = name_; + result.displayName_ = displayName_; + if (typeCase_ == 3) { + if (tableBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = tableBuilder_.build(); + } + } + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.ViewsProto.Views.View) { + return mergeFrom((com.factset.protobuf.stach.v3.ViewsProto.Views.View)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.ViewsProto.Views.View other) { + if (other == com.factset.protobuf.stach.v3.ViewsProto.Views.View.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + switch (other.getTypeCase()) { + case TABLE: { + mergeTable(other.getTable()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.ViewsProto.Views.View parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.ViewsProto.Views.View) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+         *The name of the view.
+         *Required.
+         * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The name of the view.
+         *Required.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The name of the view.
+         *Required.
+         * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         *The name of the view.
+         *Required.
+         * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         *The name of the view.
+         *Required.
+         * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+         *The display name that describes the type of view.
+         *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+         *Optional.
+         * 
+ * + * string display_name = 2; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *The display name that describes the type of view.
+         *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+         *Optional.
+         * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *The display name that describes the type of view.
+         *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+         *Optional.
+         * 
+ * + * string display_name = 2; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+         *The display name that describes the type of view.
+         *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+         *Optional.
+         * 
+ * + * string display_name = 2; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+         *The display name that describes the type of view.
+         *This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc.
+         *Optional.
+         * 
+ * + * string display_name = 2; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView, com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder> tableBuilder_; + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + * @return Whether the table field is set. + */ + @java.lang.Override + public boolean hasTable() { + return typeCase_ == 3; + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + * @return The table. + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableView getTable() { + if (tableBuilder_ == null) { + if (typeCase_ == 3) { + return (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_; + } + return com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return tableBuilder_.getMessage(); + } + return com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + public Builder setTable(com.factset.protobuf.stach.v3.TableViewProto.TableView value) { + if (tableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + tableBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + public Builder setTable( + com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder builderForValue) { + if (tableBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + tableBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + public Builder mergeTable(com.factset.protobuf.stach.v3.TableViewProto.TableView value) { + if (tableBuilder_ == null) { + if (typeCase_ == 3 && + type_ != com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance()) { + type_ = com.factset.protobuf.stach.v3.TableViewProto.TableView.newBuilder((com.factset.protobuf.stach.v3.TableViewProto.TableView) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + tableBuilder_.mergeFrom(value); + } + tableBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + public Builder clearTable() { + if (tableBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + tableBuilder_.clear(); + } + return this; + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + public com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder getTableBuilder() { + return getTableFieldBuilder().getBuilder(); + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder getTableOrBuilder() { + if ((typeCase_ == 3) && (tableBuilder_ != null)) { + return tableBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_; + } + return com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } + } + /** + *
+         *The instructions to render tabular data into a rendered table.
+         * 
+ * + * .factset.protobuf.stach.v3.TableView table = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView, com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder> + getTableFieldBuilder() { + if (tableBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = com.factset.protobuf.stach.v3.TableViewProto.TableView.getDefaultInstance(); + } + tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.factset.protobuf.stach.v3.TableViewProto.TableView, com.factset.protobuf.stach.v3.TableViewProto.TableView.Builder, com.factset.protobuf.stach.v3.TableViewProto.TableViewOrBuilder>( + (com.factset.protobuf.stach.v3.TableViewProto.TableView) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return tableBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Views.View) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Views.View) + private static final com.factset.protobuf.stach.v3.ViewsProto.Views.View DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.ViewsProto.Views.View(); + } + + public static com.factset.protobuf.stach.v3.ViewsProto.Views.View getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public View parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new View(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.View getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int VIEWS_FIELD_NUMBER = 1; + private java.util.List views_; + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + @java.lang.Override + public java.util.List getViewsList() { + return views_; + } + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + @java.lang.Override + public java.util.List + getViewsOrBuilderList() { + return views_; + } + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + @java.lang.Override + public int getViewsCount() { + return views_.size(); + } + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.View getViews(int index) { + return views_.get(index); + } + /** + *
+     *The views.
+     *The first view is considered the default view when rendering the table.
+     *Required.
+     * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder getViewsOrBuilder( + int index) { + return views_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < views_.size(); i++) { + output.writeMessage(1, views_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < views_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, views_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.factset.protobuf.stach.v3.ViewsProto.Views)) { + return super.equals(obj); + } + com.factset.protobuf.stach.v3.ViewsProto.Views other = (com.factset.protobuf.stach.v3.ViewsProto.Views) obj; + + if (!getViewsList() + .equals(other.getViewsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getViewsCount() > 0) { + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getViewsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.factset.protobuf.stach.v3.ViewsProto.Views parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.factset.protobuf.stach.v3.ViewsProto.Views prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     *A set of a metadata specifying one or more views for rendering a table.
+     * 
+ * + * Protobuf type {@code factset.protobuf.stach.v3.Views} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:factset.protobuf.stach.v3.Views) + com.factset.protobuf.stach.v3.ViewsProto.ViewsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.factset.protobuf.stach.v3.ViewsProto.Views.class, com.factset.protobuf.stach.v3.ViewsProto.Views.Builder.class); + } + + // Construct using com.factset.protobuf.stach.v3.ViewsProto.Views.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getViewsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (viewsBuilder_ == null) { + views_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + viewsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.factset.protobuf.stach.v3.ViewsProto.internal_static_factset_protobuf_stach_v3_Views_descriptor; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views getDefaultInstanceForType() { + return com.factset.protobuf.stach.v3.ViewsProto.Views.getDefaultInstance(); + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views build() { + com.factset.protobuf.stach.v3.ViewsProto.Views result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views buildPartial() { + com.factset.protobuf.stach.v3.ViewsProto.Views result = new com.factset.protobuf.stach.v3.ViewsProto.Views(this); + int from_bitField0_ = bitField0_; + if (viewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + views_ = java.util.Collections.unmodifiableList(views_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.views_ = views_; + } else { + result.views_ = viewsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.factset.protobuf.stach.v3.ViewsProto.Views) { + return mergeFrom((com.factset.protobuf.stach.v3.ViewsProto.Views)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.factset.protobuf.stach.v3.ViewsProto.Views other) { + if (other == com.factset.protobuf.stach.v3.ViewsProto.Views.getDefaultInstance()) return this; + if (viewsBuilder_ == null) { + if (!other.views_.isEmpty()) { + if (views_.isEmpty()) { + views_ = other.views_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureViewsIsMutable(); + views_.addAll(other.views_); + } + onChanged(); + } + } else { + if (!other.views_.isEmpty()) { + if (viewsBuilder_.isEmpty()) { + viewsBuilder_.dispose(); + viewsBuilder_ = null; + views_ = other.views_; + bitField0_ = (bitField0_ & ~0x00000001); + viewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getViewsFieldBuilder() : null; + } else { + viewsBuilder_.addAllMessages(other.views_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.factset.protobuf.stach.v3.ViewsProto.Views parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.factset.protobuf.stach.v3.ViewsProto.Views) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List views_ = + java.util.Collections.emptyList(); + private void ensureViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + views_ = new java.util.ArrayList(views_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.ViewsProto.Views.View, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder, com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder> viewsBuilder_; + + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public java.util.List getViewsList() { + if (viewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(views_); + } else { + return viewsBuilder_.getMessageList(); + } + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public int getViewsCount() { + if (viewsBuilder_ == null) { + return views_.size(); + } else { + return viewsBuilder_.getCount(); + } + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View getViews(int index) { + if (viewsBuilder_ == null) { + return views_.get(index); + } else { + return viewsBuilder_.getMessage(index); + } + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder setViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View value) { + if (viewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViewsIsMutable(); + views_.set(index, value); + onChanged(); + } else { + viewsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder setViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder builderForValue) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.set(index, builderForValue.build()); + onChanged(); + } else { + viewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder addViews(com.factset.protobuf.stach.v3.ViewsProto.Views.View value) { + if (viewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViewsIsMutable(); + views_.add(value); + onChanged(); + } else { + viewsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder addViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View value) { + if (viewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViewsIsMutable(); + views_.add(index, value); + onChanged(); + } else { + viewsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder addViews( + com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder builderForValue) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(builderForValue.build()); + onChanged(); + } else { + viewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder addViews( + int index, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder builderForValue) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(index, builderForValue.build()); + onChanged(); + } else { + viewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder addAllViews( + java.lang.Iterable values) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, views_); + onChanged(); + } else { + viewsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder clearViews() { + if (viewsBuilder_ == null) { + views_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + viewsBuilder_.clear(); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public Builder removeViews(int index) { + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.remove(index); + onChanged(); + } else { + viewsBuilder_.remove(index); + } + return this; + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder getViewsBuilder( + int index) { + return getViewsFieldBuilder().getBuilder(index); + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder getViewsOrBuilder( + int index) { + if (viewsBuilder_ == null) { + return views_.get(index); } else { + return viewsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public java.util.List + getViewsOrBuilderList() { + if (viewsBuilder_ != null) { + return viewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(views_); + } + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder addViewsBuilder() { + return getViewsFieldBuilder().addBuilder( + com.factset.protobuf.stach.v3.ViewsProto.Views.View.getDefaultInstance()); + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder addViewsBuilder( + int index) { + return getViewsFieldBuilder().addBuilder( + index, com.factset.protobuf.stach.v3.ViewsProto.Views.View.getDefaultInstance()); + } + /** + *
+       *The views.
+       *The first view is considered the default view when rendering the table.
+       *Required.
+       * 
+ * + * repeated .factset.protobuf.stach.v3.Views.View views = 1; + */ + public java.util.List + getViewsBuilderList() { + return getViewsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.ViewsProto.Views.View, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder, com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder> + getViewsFieldBuilder() { + if (viewsBuilder_ == null) { + viewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.factset.protobuf.stach.v3.ViewsProto.Views.View, com.factset.protobuf.stach.v3.ViewsProto.Views.View.Builder, com.factset.protobuf.stach.v3.ViewsProto.Views.ViewOrBuilder>( + views_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + views_ = null; + } + return viewsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:factset.protobuf.stach.v3.Views) + } + + // @@protoc_insertion_point(class_scope:factset.protobuf.stach.v3.Views) + private static final com.factset.protobuf.stach.v3.ViewsProto.Views DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.factset.protobuf.stach.v3.ViewsProto.Views(); + } + + public static com.factset.protobuf.stach.v3.ViewsProto.Views getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Views parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Views(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.factset.protobuf.stach.v3.ViewsProto.Views getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Views_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Views_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_factset_protobuf_stach_v3_Views_View_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_factset_protobuf_stach_v3_Views_View_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!fds/protobuf/stach/v3/Views.proto\022\031fac" + + "tset.protobuf.stach.v3\032%fds/protobuf/sta" + + "ch/v3/TableView.proto\"\250\001\n\005Views\0224\n\005views" + + "\030\001 \003(\0132%.factset.protobuf.stach.v3.Views" + + ".View\032i\n\004View\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" + + "ame\030\002 \001(\t\0225\n\005table\030\003 \001(\0132$.factset.proto" + + "buf.stach.v3.TableViewH\000B\006\n\004typeB\205\001\n\035com" + + ".factset.protobuf.stach.v3B\nViewsProtoZ<" + + "github.com/factset/stachschema-sdks/go/f" + + "ds/protobuf/stach/v3\252\002\031FactSet.Protobuf." + + "Stach.V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.factset.protobuf.stach.v3.TableViewProto.getDescriptor(), + }); + internal_static_factset_protobuf_stach_v3_Views_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_factset_protobuf_stach_v3_Views_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_factset_protobuf_stach_v3_Views_descriptor, + new java.lang.String[] { "Views", }); + internal_static_factset_protobuf_stach_v3_Views_View_descriptor = + internal_static_factset_protobuf_stach_v3_Views_descriptor.getNestedTypes().get(0); + internal_static_factset_protobuf_stach_v3_Views_View_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_factset_protobuf_stach_v3_Views_View_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Table", "Type", }); + com.factset.protobuf.stach.v3.TableViewProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/js/Dockerfile.build b/js/Dockerfile.build index d9a2dce..70d3be9 100644 --- a/js/Dockerfile.build +++ b/js/Dockerfile.build @@ -7,4 +7,4 @@ LABEL org.label-schema.license="Apache-2.0" \ COPY js /src -RUN /src/CI/build-sdk.sh \ No newline at end of file +RUN /src/CI/build-sdk.sh diff --git a/js/generate.js b/js/generate.js index 1feab77..7a0d1a9 100644 --- a/js/generate.js +++ b/js/generate.js @@ -19,7 +19,7 @@ var protoFiles = (function getStachProtoFiles(dir, filelist) { } }); return filelist; -})("/schema/fds/protobuf/stach/v2"); +})("/schema/fds/protobuf/stach/v3") pbjs.main([ "-t", "static-module", "-w", "commonjs", "-r", moduleName, "-o", jsOutputFileName ].concat(protoFiles), function(err, jsOutput) { if (err) throw err; @@ -42,4 +42,4 @@ pbjs.main([ "-t", "static-module", "-w", "commonjs", "-r", moduleName, "-o", jsO console.log("Wrote " + tsOutputFileName); }); }); -}); \ No newline at end of file +}); diff --git a/js/packages/stach/package.json b/js/packages/stach/package.json index c74fb99..9acbbd1 100644 --- a/js/packages/stach/package.json +++ b/js/packages/stach/package.json @@ -1,5 +1,5 @@ { - "name": "@fds/protobuf-stach-v2", + "name": "@fds/protobuf-stach-v3", "version": "1.0.0", "description": "Protobuf generated javascript files for STACH", "main": "index.js", diff --git a/js/packages/stach/stach.d.ts b/js/packages/stach/stach.d.ts index 23039e9..e731870 100644 --- a/js/packages/stach/stach.d.ts +++ b/js/packages/stach/stach.d.ts @@ -13,2516 +13,1672 @@ declare namespace stach { /** Namespace stach. */ namespace stach { - /** Namespace v2. */ - namespace v2 { + /** Namespace v3. */ + namespace v3 { - /** Properties of a Package. */ - interface IPackage { + /** Properties of a Column. */ + interface IColumn { - /** Package version */ - version?: (string|null); - - /** Package primaryTableIds */ - primaryTableIds?: (string[]|null); + /** Column contextualType */ + contextualType?: (string|null); - /** Package tables */ - tables?: ({ [k: string]: factset.protobuf.stach.v2.table.ITable }|null); + /** Column customMetadata */ + customMetadata?: ({ [k: string]: factset.protobuf.stach.v3.IMetadataItem }|null); } - /** Represents a Package. */ - class Package implements IPackage { + /** Represents a Column. */ + class Column implements IColumn { /** - * Constructs a new Package. + * Constructs a new Column. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.IPackage); + constructor(properties?: factset.protobuf.stach.v3.IColumn); - /** Package version. */ - public version: string; + /** Column contextualType. */ + public contextualType: string; + + /** Column customMetadata. */ + public customMetadata: { [k: string]: factset.protobuf.stach.v3.IMetadataItem }; + + /** + * Creates a new Column instance using the specified properties. + * @param [properties] Properties to set + * @returns Column instance + */ + public static create(properties?: factset.protobuf.stach.v3.IColumn): factset.protobuf.stach.v3.Column; + + /** + * Encodes the specified Column message. Does not implicitly {@link factset.protobuf.stach.v3.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: factset.protobuf.stach.v3.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: factset.protobuf.stach.v3.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Column message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Column; + + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Column; + + /** + * Verifies a Column message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Column + */ + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Column; + + /** + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @param message Column + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: factset.protobuf.stach.v3.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Column to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MetadataItem. */ + interface IMetadataItem { + + /** MetadataItem contextualType */ + contextualType?: (string|null); + + /** MetadataItem value */ + value?: (google.protobuf.IValue|null); + } - /** Package primaryTableIds. */ - public primaryTableIds: string[]; + /** Represents a MetadataItem. */ + class MetadataItem implements IMetadataItem { - /** Package tables. */ - public tables: { [k: string]: factset.protobuf.stach.v2.table.ITable }; + /** + * Constructs a new MetadataItem. + * @param [properties] Properties to set + */ + constructor(properties?: factset.protobuf.stach.v3.IMetadataItem); + + /** MetadataItem contextualType. */ + public contextualType: string; + + /** MetadataItem value. */ + public value?: (google.protobuf.IValue|null); /** - * Creates a new Package instance using the specified properties. + * Creates a new MetadataItem instance using the specified properties. * @param [properties] Properties to set - * @returns Package instance + * @returns MetadataItem instance */ - public static create(properties?: factset.protobuf.stach.v2.IPackage): factset.protobuf.stach.v2.Package; + public static create(properties?: factset.protobuf.stach.v3.IMetadataItem): factset.protobuf.stach.v3.MetadataItem; /** - * Encodes the specified Package message. Does not implicitly {@link factset.protobuf.stach.v2.Package.verify|verify} messages. - * @param message Package message or plain object to encode + * Encodes the specified MetadataItem message. Does not implicitly {@link factset.protobuf.stach.v3.MetadataItem.verify|verify} messages. + * @param message MetadataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.IMetadataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Package message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.Package.verify|verify} messages. - * @param message Package message or plain object to encode + * Encodes the specified MetadataItem message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.MetadataItem.verify|verify} messages. + * @param message MetadataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.IMetadataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Package message from the specified reader or buffer. + * Decodes a MetadataItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Package + * @returns MetadataItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.Package; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.MetadataItem; /** - * Decodes a Package message from the specified reader or buffer, length delimited. + * Decodes a MetadataItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Package + * @returns MetadataItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.Package; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.MetadataItem; /** - * Verifies a Package message. + * Verifies a MetadataItem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Package message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Package + * @returns MetadataItem */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.Package; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.MetadataItem; /** - * Creates a plain object from a Package message. Also converts values to other types if specified. - * @param message Package + * Creates a plain object from a MetadataItem message. Also converts values to other types if specified. + * @param message MetadataItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.Package, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.MetadataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Package to JSON. + * Converts this MetadataItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RowOrganizedPackage. */ - interface IRowOrganizedPackage { + /** Properties of a RowOrganizedTable. */ + interface IRowOrganizedTable { - /** RowOrganizedPackage version */ + /** RowOrganizedTable version */ version?: (string|null); - /** RowOrganizedPackage tables */ - tables?: ({ [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.ITable }|null); + /** RowOrganizedTable name */ + name?: (string|null); + + /** RowOrganizedTable columns */ + columns?: (factset.protobuf.stach.v3.RowOrganizedTable.IColumn[]|null); + + /** RowOrganizedTable table */ + table?: (factset.protobuf.stach.v3.ITable|null); + + /** RowOrganizedTable multiLevelHeadersTable */ + multiLevelHeadersTable?: (factset.protobuf.stach.v3.IRowOrganizedTable|null); + + /** RowOrganizedTable views */ + views?: (factset.protobuf.stach.v3.Views.IView[]|null); + + /** RowOrganizedTable headerRows */ + headerRows?: (factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow[]|null); + + /** RowOrganizedTable rows */ + rows?: (google.protobuf.IStruct[]|null); } - /** Represents a RowOrganizedPackage. */ - class RowOrganizedPackage implements IRowOrganizedPackage { + /** Represents a RowOrganizedTable. */ + class RowOrganizedTable implements IRowOrganizedTable { /** - * Constructs a new RowOrganizedPackage. + * Constructs a new RowOrganizedTable. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.IRowOrganizedPackage); + constructor(properties?: factset.protobuf.stach.v3.IRowOrganizedTable); - /** RowOrganizedPackage version. */ + /** RowOrganizedTable version. */ public version: string; - /** RowOrganizedPackage tables. */ - public tables: { [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.ITable }; + /** RowOrganizedTable name. */ + public name: string; + + /** RowOrganizedTable columns. */ + public columns: factset.protobuf.stach.v3.RowOrganizedTable.IColumn[]; + + /** RowOrganizedTable table. */ + public table?: (factset.protobuf.stach.v3.ITable|null); + + /** RowOrganizedTable multiLevelHeadersTable. */ + public multiLevelHeadersTable?: (factset.protobuf.stach.v3.IRowOrganizedTable|null); + + /** RowOrganizedTable views. */ + public views: factset.protobuf.stach.v3.Views.IView[]; + + /** RowOrganizedTable headerRows. */ + public headerRows: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow[]; + + /** RowOrganizedTable rows. */ + public rows: google.protobuf.IStruct[]; /** - * Creates a new RowOrganizedPackage instance using the specified properties. + * Creates a new RowOrganizedTable instance using the specified properties. * @param [properties] Properties to set - * @returns RowOrganizedPackage instance + * @returns RowOrganizedTable instance */ - public static create(properties?: factset.protobuf.stach.v2.IRowOrganizedPackage): factset.protobuf.stach.v2.RowOrganizedPackage; + public static create(properties?: factset.protobuf.stach.v3.IRowOrganizedTable): factset.protobuf.stach.v3.RowOrganizedTable; /** - * Encodes the specified RowOrganizedPackage message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.verify|verify} messages. - * @param message RowOrganizedPackage message or plain object to encode + * Encodes the specified RowOrganizedTable message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.verify|verify} messages. + * @param message RowOrganizedTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.IRowOrganizedPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.IRowOrganizedTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RowOrganizedPackage message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.verify|verify} messages. - * @param message RowOrganizedPackage message or plain object to encode + * Encodes the specified RowOrganizedTable message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.verify|verify} messages. + * @param message RowOrganizedTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.IRowOrganizedPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.IRowOrganizedTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RowOrganizedPackage message from the specified reader or buffer. + * Decodes a RowOrganizedTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RowOrganizedPackage + * @returns RowOrganizedTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.RowOrganizedTable; /** - * Decodes a RowOrganizedPackage message from the specified reader or buffer, length delimited. + * Decodes a RowOrganizedTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RowOrganizedPackage + * @returns RowOrganizedTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.RowOrganizedTable; /** - * Verifies a RowOrganizedPackage message. + * Verifies a RowOrganizedTable message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RowOrganizedPackage message from a plain object. Also converts values to their respective internal types. + * Creates a RowOrganizedTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RowOrganizedPackage + * @returns RowOrganizedTable */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.RowOrganizedTable; /** - * Creates a plain object from a RowOrganizedPackage message. Also converts values to other types if specified. - * @param message RowOrganizedPackage + * Creates a plain object from a RowOrganizedTable message. Also converts values to other types if specified. + * @param message RowOrganizedTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.RowOrganizedTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RowOrganizedPackage to JSON. + * Converts this RowOrganizedTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace RowOrganizedPackage { + namespace RowOrganizedTable { + + /** Properties of a Column. */ + interface IColumn { - /** Properties of a Table. */ - interface ITable { + /** Column name */ + name?: (string|null); - /** Table definition */ - definition?: (factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null); + /** Column forbidNulls */ + forbidNulls?: (boolean|null); - /** Table headersDefinition */ - headersDefinition?: (factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null); + /** Column contextualType */ + contextualType?: (string|null); - /** Table data */ - data?: (factset.protobuf.stach.v2.RowOrganizedPackage.ITableData|null); + /** Column customMetadata */ + customMetadata?: ({ [k: string]: factset.protobuf.stach.v3.IMetadataItem }|null); } - /** Represents a Table. */ - class Table implements ITable { + /** Represents a Column. */ + class Column implements IColumn { /** - * Constructs a new Table. + * Constructs a new Column. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ITable); + constructor(properties?: factset.protobuf.stach.v3.RowOrganizedTable.IColumn); + + /** Column name. */ + public name: string; - /** Table definition. */ - public definition?: (factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null); + /** Column forbidNulls. */ + public forbidNulls: boolean; - /** Table headersDefinition. */ - public headersDefinition?: (factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null); + /** Column contextualType. */ + public contextualType: string; - /** Table data. */ - public data?: (factset.protobuf.stach.v2.RowOrganizedPackage.ITableData|null); + /** Column customMetadata. */ + public customMetadata: { [k: string]: factset.protobuf.stach.v3.IMetadataItem }; /** - * Creates a new Table instance using the specified properties. + * Creates a new Column instance using the specified properties. * @param [properties] Properties to set - * @returns Table instance + * @returns Column instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ITable): factset.protobuf.stach.v2.RowOrganizedPackage.Table; + public static create(properties?: factset.protobuf.stach.v3.RowOrganizedTable.IColumn): factset.protobuf.stach.v3.RowOrganizedTable.Column; /** - * Encodes the specified Table message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Table.verify|verify} messages. - * @param message Table message or plain object to encode + * Encodes the specified Column message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.Column.verify|verify} messages. + * @param message Column message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.RowOrganizedTable.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Table.verify|verify} messages. - * @param message Table message or plain object to encode + * Encodes the specified Column message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.Column.verify|verify} messages. + * @param message Column message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.RowOrganizedTable.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes a Column message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Table + * @returns Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.Table; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.RowOrganizedTable.Column; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a Column message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Table + * @returns Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.Table; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.RowOrganizedTable.Column; /** - * Verifies a Table message. + * Verifies a Column message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates a Column message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Table + * @returns Column */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.Table; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.RowOrganizedTable.Column; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. - * @param message Table + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @param message Column * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.RowOrganizedTable.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Table to JSON. + * Converts this Column to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TableDefinition. */ - interface ITableDefinition { + /** Properties of a HeaderRow. */ + interface IHeaderRow { - /** TableDefinition columns */ - columns?: (factset.protobuf.stach.v2.table.IColumnDefinition[]|null); + /** HeaderRow cells */ + cells?: (factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell[]|null); } - /** Represents a TableDefinition. */ - class TableDefinition implements ITableDefinition { + /** Represents a HeaderRow. */ + class HeaderRow implements IHeaderRow { /** - * Constructs a new TableDefinition. + * Constructs a new HeaderRow. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition); + constructor(properties?: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow); - /** TableDefinition columns. */ - public columns: factset.protobuf.stach.v2.table.IColumnDefinition[]; + /** HeaderRow cells. */ + public cells: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell[]; /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new HeaderRow instance using the specified properties. * @param [properties] Properties to set - * @returns TableDefinition instance + * @returns HeaderRow instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition): factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition; + public static create(properties?: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow): factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow; /** - * Encodes the specified TableDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.verify|verify} messages. - * @param message TableDefinition message or plain object to encode + * Encodes the specified HeaderRow message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.verify|verify} messages. + * @param message HeaderRow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.verify|verify} messages. - * @param message TableDefinition message or plain object to encode + * Encodes the specified HeaderRow message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.verify|verify} messages. + * @param message HeaderRow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a HeaderRow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TableDefinition + * @returns HeaderRow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a HeaderRow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableDefinition + * @returns HeaderRow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow; /** - * Verifies a TableDefinition message. + * Verifies a HeaderRow message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a HeaderRow message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TableDefinition + * @returns HeaderRow */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. - * @param message TableDefinition + * Creates a plain object from a HeaderRow message. Also converts values to other types if specified. + * @param message HeaderRow * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableDefinition to JSON. + * Converts this HeaderRow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TableData. */ - interface ITableData { + /** Properties of a HeaderCell. */ + interface IHeaderCell { - /** TableData rows */ - rows?: (factset.protobuf.stach.v2.RowOrganizedPackage.IRow[]|null); + /** HeaderCell colspan */ + colspan?: (number|null); - /** TableData tableMetadata */ - tableMetadata?: ({ [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }|null); + /** HeaderCell rowspan */ + rowspan?: (number|null); - /** TableData columnMetadata */ - columnMetadata?: ({ [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata }|null); + /** HeaderCell value */ + value?: (google.protobuf.IValue|null); } - /** Represents a TableData. */ - class TableData implements ITableData { + /** Represents a HeaderCell. */ + class HeaderCell implements IHeaderCell { /** - * Constructs a new TableData. + * Constructs a new HeaderCell. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ITableData); + constructor(properties?: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell); - /** TableData rows. */ - public rows: factset.protobuf.stach.v2.RowOrganizedPackage.IRow[]; + /** HeaderCell colspan. */ + public colspan: number; - /** TableData tableMetadata. */ - public tableMetadata: { [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }; + /** HeaderCell rowspan. */ + public rowspan: number; - /** TableData columnMetadata. */ - public columnMetadata: { [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata }; + /** HeaderCell value. */ + public value?: (google.protobuf.IValue|null); /** - * Creates a new TableData instance using the specified properties. + * Creates a new HeaderCell instance using the specified properties. * @param [properties] Properties to set - * @returns TableData instance + * @returns HeaderCell instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ITableData): factset.protobuf.stach.v2.RowOrganizedPackage.TableData; + public static create(properties?: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell): factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell; /** - * Encodes the specified TableData message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableData.verify|verify} messages. - * @param message TableData message or plain object to encode + * Encodes the specified HeaderCell message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.verify|verify} messages. + * @param message HeaderCell message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.ITableData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableData message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableData.verify|verify} messages. - * @param message TableData message or plain object to encode + * Encodes the specified HeaderCell message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.verify|verify} messages. + * @param message HeaderCell message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.ITableData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableData message from the specified reader or buffer. + * Decodes a HeaderCell message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TableData + * @returns HeaderCell * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.TableData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell; /** - * Decodes a TableData message from the specified reader or buffer, length delimited. + * Decodes a HeaderCell message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableData + * @returns HeaderCell * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.TableData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell; /** - * Verifies a TableData message. + * Verifies a HeaderCell message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TableData message from a plain object. Also converts values to their respective internal types. + * Creates a HeaderCell message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TableData + * @returns HeaderCell */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.TableData; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell; /** - * Creates a plain object from a TableData message. Also converts values to other types if specified. - * @param message TableData + * Creates a plain object from a HeaderCell message. Also converts values to other types if specified. + * @param message HeaderCell * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.TableData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableData to JSON. + * Converts this HeaderCell to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } + + /** Properties of a Table. */ + interface ITable { + + /** Table primaryKeys */ + primaryKeys?: (string[]|null); + + /** Table totalNumRows */ + totalNumRows?: (number|null); + + /** Table groupResult */ + groupResult?: (factset.protobuf.stach.v3.Table.IGroupResult|null); + + /** Table splitResult */ + splitResult?: (factset.protobuf.stach.v3.Table.ISplitResult|null); + + /** Table customMetadata */ + customMetadata?: ({ [k: string]: factset.protobuf.stach.v3.IMetadataItem }|null); + } + + /** Represents a Table. */ + class Table implements ITable { + + /** + * Constructs a new Table. + * @param [properties] Properties to set + */ + constructor(properties?: factset.protobuf.stach.v3.ITable); + + /** Table primaryKeys. */ + public primaryKeys: string[]; + + /** Table totalNumRows. */ + public totalNumRows: number; + + /** Table groupResult. */ + public groupResult?: (factset.protobuf.stach.v3.Table.IGroupResult|null); + + /** Table splitResult. */ + public splitResult?: (factset.protobuf.stach.v3.Table.ISplitResult|null); + + /** Table customMetadata. */ + public customMetadata: { [k: string]: factset.protobuf.stach.v3.IMetadataItem }; + + /** + * Creates a new Table instance using the specified properties. + * @param [properties] Properties to set + * @returns Table instance + */ + public static create(properties?: factset.protobuf.stach.v3.ITable): factset.protobuf.stach.v3.Table; + + /** + * Encodes the specified Table message. Does not implicitly {@link factset.protobuf.stach.v3.Table.verify|verify} messages. + * @param message Table message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: factset.protobuf.stach.v3.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Table message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.verify|verify} messages. + * @param message Table message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: factset.protobuf.stach.v3.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Table message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Table; + + /** + * Decodes a Table message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Table; - /** Properties of a Row. */ - interface IRow { + /** + * Verifies a Table message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Table message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Table + */ + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Table; + + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @param message Table + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: factset.protobuf.stach.v3.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Table to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Row id */ - id?: (string|null); + namespace Table { - /** Row rowType */ - rowType?: (factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType|null); + /** Properties of a GroupResult. */ + interface IGroupResult { - /** Row cells */ - cells?: (google.protobuf.IListValue|null); + /** GroupResult by */ + by?: (string[]|null); - /** Row values */ - values?: (google.protobuf.IStruct|null); + /** GroupResult collapsedColumnResult */ + collapsedColumnResult?: (factset.protobuf.stach.v3.Table.ICollapsedColumnResult|null); - /** Row cellDetails */ - cellDetails?: ({ [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail }|null); + /** GroupResult rowPath */ + rowPath?: (string|null); - /** Row headerCellDetails */ - headerCellDetails?: ({ [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail }|null); + /** GroupResult aggregateRows */ + aggregateRows?: (string|null); - /** Row rowMetadata */ - rowMetadata?: ({ [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }|null); + /** GroupResult level */ + level?: (string|null); } - /** Represents a Row. */ - class Row implements IRow { + /** Represents a GroupResult. */ + class GroupResult implements IGroupResult { /** - * Constructs a new Row. + * Constructs a new GroupResult. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.IRow); + constructor(properties?: factset.protobuf.stach.v3.Table.IGroupResult); - /** Row id. */ - public id: string; + /** GroupResult by. */ + public by: string[]; - /** Row rowType. */ - public rowType: factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType; + /** GroupResult collapsedColumnResult. */ + public collapsedColumnResult?: (factset.protobuf.stach.v3.Table.ICollapsedColumnResult|null); - /** Row cells. */ - public cells?: (google.protobuf.IListValue|null); + /** GroupResult rowPath. */ + public rowPath: string; - /** Row values. */ - public values?: (google.protobuf.IStruct|null); + /** GroupResult aggregateRows. */ + public aggregateRows: string; - /** Row cellDetails. */ - public cellDetails: { [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail }; - - /** Row headerCellDetails. */ - public headerCellDetails: { [k: string]: factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail }; - - /** Row rowMetadata. */ - public rowMetadata: { [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }; - - /** Row kind. */ - public kind?: ("cells"|"values"); + /** GroupResult level. */ + public level: string; /** - * Creates a new Row instance using the specified properties. + * Creates a new GroupResult instance using the specified properties. * @param [properties] Properties to set - * @returns Row instance + * @returns GroupResult instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.IRow): factset.protobuf.stach.v2.RowOrganizedPackage.Row; + public static create(properties?: factset.protobuf.stach.v3.Table.IGroupResult): factset.protobuf.stach.v3.Table.GroupResult; /** - * Encodes the specified Row message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Row.verify|verify} messages. - * @param message Row message or plain object to encode + * Encodes the specified GroupResult message. Does not implicitly {@link factset.protobuf.stach.v3.Table.GroupResult.verify|verify} messages. + * @param message GroupResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.Table.IGroupResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Row.verify|verify} messages. - * @param message Row message or plain object to encode + * Encodes the specified GroupResult message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.GroupResult.verify|verify} messages. + * @param message GroupResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.Table.IGroupResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes a GroupResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Row + * @returns GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.Row; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Table.GroupResult; /** - * Decodes a Row message from the specified reader or buffer, length delimited. + * Decodes a GroupResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Row + * @returns GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.Row; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Table.GroupResult; /** - * Verifies a Row message. + * Verifies a GroupResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. + * Creates a GroupResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Row + * @returns GroupResult */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.Row; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Table.GroupResult; /** - * Creates a plain object from a Row message. Also converts values to other types if specified. - * @param message Row + * Creates a plain object from a GroupResult message. Also converts values to other types if specified. + * @param message GroupResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.Table.GroupResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Row to JSON. + * Converts this GroupResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Row { - - /** RowType enum. */ - enum RowType { - Body = 0, - Header = 1 - } - } - - /** Properties of a CellDetail. */ - interface ICellDetail { - - /** CellDetail groupLevel */ - groupLevel?: (number|null); - - /** CellDetail cellDefinition */ - cellDefinition?: (factset.protobuf.stach.v2.table.ICellDefinition|null); + /** Properties of a CollapsedColumnResult. */ + interface ICollapsedColumnResult { - /** CellDetail cellMetadata */ - cellMetadata?: ({ [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }|null); + /** CollapsedColumnResult name */ + name?: (string|null); } - /** Represents a CellDetail. */ - class CellDetail implements ICellDetail { + /** Represents a CollapsedColumnResult. */ + class CollapsedColumnResult implements ICollapsedColumnResult { /** - * Constructs a new CellDetail. + * Constructs a new CollapsedColumnResult. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail); - - /** CellDetail groupLevel. */ - public groupLevel: number; + constructor(properties?: factset.protobuf.stach.v3.Table.ICollapsedColumnResult); - /** CellDetail cellDefinition. */ - public cellDefinition?: (factset.protobuf.stach.v2.table.ICellDefinition|null); - - /** CellDetail cellMetadata. */ - public cellMetadata: { [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }; + /** CollapsedColumnResult name. */ + public name: string; /** - * Creates a new CellDetail instance using the specified properties. + * Creates a new CollapsedColumnResult instance using the specified properties. * @param [properties] Properties to set - * @returns CellDetail instance + * @returns CollapsedColumnResult instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail): factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail; + public static create(properties?: factset.protobuf.stach.v3.Table.ICollapsedColumnResult): factset.protobuf.stach.v3.Table.CollapsedColumnResult; /** - * Encodes the specified CellDetail message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.verify|verify} messages. - * @param message CellDetail message or plain object to encode + * Encodes the specified CollapsedColumnResult message. Does not implicitly {@link factset.protobuf.stach.v3.Table.CollapsedColumnResult.verify|verify} messages. + * @param message CollapsedColumnResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.Table.ICollapsedColumnResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CellDetail message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.verify|verify} messages. - * @param message CellDetail message or plain object to encode + * Encodes the specified CollapsedColumnResult message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.CollapsedColumnResult.verify|verify} messages. + * @param message CollapsedColumnResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.Table.ICollapsedColumnResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CellDetail message from the specified reader or buffer. + * Decodes a CollapsedColumnResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CellDetail + * @returns CollapsedColumnResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Table.CollapsedColumnResult; /** - * Decodes a CellDetail message from the specified reader or buffer, length delimited. + * Decodes a CollapsedColumnResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CellDetail + * @returns CollapsedColumnResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Table.CollapsedColumnResult; /** - * Verifies a CellDetail message. + * Verifies a CollapsedColumnResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CellDetail message from a plain object. Also converts values to their respective internal types. + * Creates a CollapsedColumnResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CellDetail + * @returns CollapsedColumnResult */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Table.CollapsedColumnResult; /** - * Creates a plain object from a CellDetail message. Also converts values to other types if specified. - * @param message CellDetail + * Creates a plain object from a CollapsedColumnResult message. Also converts values to other types if specified. + * @param message CollapsedColumnResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.Table.CollapsedColumnResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CellDetail to JSON. + * Converts this CollapsedColumnResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a HeaderCellDetail. */ - interface IHeaderCellDetail { + /** Properties of a SplitResult. */ + interface ISplitResult { - /** HeaderCellDetail colspan */ - colspan?: (number|null); - - /** HeaderCellDetail rowspan */ - rowspan?: (number|null); - - /** HeaderCellDetail source */ - source?: (factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource|null); - - /** HeaderCellDetail columnIndex */ - columnIndex?: (number|null); - - /** HeaderCellDetail cellDefinition */ - cellDefinition?: (factset.protobuf.stach.v2.table.ICellDefinition|null); - - /** HeaderCellDetail cellMetadata */ - cellMetadata?: ({ [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }|null); + /** SplitResult multiLevelHeadersTableReference */ + multiLevelHeadersTableReference?: (string|null); } - /** Represents a HeaderCellDetail. */ - class HeaderCellDetail implements IHeaderCellDetail { + /** Represents a SplitResult. */ + class SplitResult implements ISplitResult { /** - * Constructs a new HeaderCellDetail. + * Constructs a new SplitResult. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail); - - /** HeaderCellDetail colspan. */ - public colspan: number; - - /** HeaderCellDetail rowspan. */ - public rowspan: number; - - /** HeaderCellDetail source. */ - public source: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource; + constructor(properties?: factset.protobuf.stach.v3.Table.ISplitResult); - /** HeaderCellDetail columnIndex. */ - public columnIndex: number; - - /** HeaderCellDetail cellDefinition. */ - public cellDefinition?: (factset.protobuf.stach.v2.table.ICellDefinition|null); - - /** HeaderCellDetail cellMetadata. */ - public cellMetadata: { [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }; + /** SplitResult multiLevelHeadersTableReference. */ + public multiLevelHeadersTableReference: string; /** - * Creates a new HeaderCellDetail instance using the specified properties. + * Creates a new SplitResult instance using the specified properties. * @param [properties] Properties to set - * @returns HeaderCellDetail instance + * @returns SplitResult instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail): factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail; + public static create(properties?: factset.protobuf.stach.v3.Table.ISplitResult): factset.protobuf.stach.v3.Table.SplitResult; /** - * Encodes the specified HeaderCellDetail message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.verify|verify} messages. - * @param message HeaderCellDetail message or plain object to encode + * Encodes the specified SplitResult message. Does not implicitly {@link factset.protobuf.stach.v3.Table.SplitResult.verify|verify} messages. + * @param message SplitResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.Table.ISplitResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HeaderCellDetail message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.verify|verify} messages. - * @param message HeaderCellDetail message or plain object to encode + * Encodes the specified SplitResult message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.SplitResult.verify|verify} messages. + * @param message SplitResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.Table.ISplitResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HeaderCellDetail message from the specified reader or buffer. + * Decodes a SplitResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HeaderCellDetail + * @returns SplitResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Table.SplitResult; /** - * Decodes a HeaderCellDetail message from the specified reader or buffer, length delimited. + * Decodes a SplitResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HeaderCellDetail + * @returns SplitResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Table.SplitResult; /** - * Verifies a HeaderCellDetail message. + * Verifies a SplitResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HeaderCellDetail message from a plain object. Also converts values to their respective internal types. + * Creates a SplitResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HeaderCellDetail + * @returns SplitResult */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Table.SplitResult; /** - * Creates a plain object from a HeaderCellDetail message. Also converts values to other types if specified. - * @param message HeaderCellDetail + * Creates a plain object from a SplitResult message. Also converts values to other types if specified. + * @param message SplitResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.Table.SplitResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HeaderCellDetail to JSON. + * Converts this SplitResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - namespace HeaderCellDetail { + /** Properties of a TableView. */ + interface ITableView { - /** TableSource enum. */ - enum TableSource { - UNKNOWN = 0, - NONE = 1, - PRIMARY = 2, - HEADERS = 3 - } - } + /** TableView displayName */ + displayName?: (string|null); + + /** TableView columns */ + columns?: (string[]|null); + + /** TableView headers */ + headers?: ({ [k: string]: string }|null); + + /** TableView group */ + group?: (factset.protobuf.stach.v3.TableView.IGroup|null); + + /** TableView split */ + split?: (factset.protobuf.stach.v3.TableView.ISplit|null); + + /** TableView customMetadata */ + customMetadata?: ({ [k: string]: factset.protobuf.stach.v3.IMetadataItem }|null); + } + + /** Represents a TableView. */ + class TableView implements ITableView { + + /** + * Constructs a new TableView. + * @param [properties] Properties to set + */ + constructor(properties?: factset.protobuf.stach.v3.ITableView); + + /** TableView displayName. */ + public displayName: string; + + /** TableView columns. */ + public columns: string[]; + + /** TableView headers. */ + public headers: { [k: string]: string }; + + /** TableView group. */ + public group?: (factset.protobuf.stach.v3.TableView.IGroup|null); + + /** TableView split. */ + public split?: (factset.protobuf.stach.v3.TableView.ISplit|null); - /** Properties of a MapOfMetadata. */ - interface IMapOfMetadata { + /** TableView customMetadata. */ + public customMetadata: { [k: string]: factset.protobuf.stach.v3.IMetadataItem }; - /** MapOfMetadata items */ - items?: ({ [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }|null); + /** + * Creates a new TableView instance using the specified properties. + * @param [properties] Properties to set + * @returns TableView instance + */ + public static create(properties?: factset.protobuf.stach.v3.ITableView): factset.protobuf.stach.v3.TableView; + + /** + * Encodes the specified TableView message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.verify|verify} messages. + * @param message TableView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: factset.protobuf.stach.v3.ITableView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TableView message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.verify|verify} messages. + * @param message TableView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: factset.protobuf.stach.v3.ITableView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableView message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.TableView; + + /** + * Decodes a TableView message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.TableView; + + /** + * Verifies a TableView message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TableView message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableView + */ + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.TableView; + + /** + * Creates a plain object from a TableView message. Also converts values to other types if specified. + * @param message TableView + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: factset.protobuf.stach.v3.TableView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TableView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace TableView { + + /** Properties of a Group. */ + interface IGroup { + + /** Group by */ + by?: (string[]|null); + + /** Group collapsedColumn */ + collapsedColumn?: (factset.protobuf.stach.v3.TableView.ICollapsedColumn|null); } - /** Represents a MapOfMetadata. */ - class MapOfMetadata implements IMapOfMetadata { + /** Represents a Group. */ + class Group implements IGroup { /** - * Constructs a new MapOfMetadata. + * Constructs a new Group. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata); + constructor(properties?: factset.protobuf.stach.v3.TableView.IGroup); + + /** Group by. */ + public by: string[]; - /** MapOfMetadata items. */ - public items: { [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }; + /** Group collapsedColumn. */ + public collapsedColumn?: (factset.protobuf.stach.v3.TableView.ICollapsedColumn|null); /** - * Creates a new MapOfMetadata instance using the specified properties. + * Creates a new Group instance using the specified properties. * @param [properties] Properties to set - * @returns MapOfMetadata instance + * @returns Group instance */ - public static create(properties?: factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata): factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata; + public static create(properties?: factset.protobuf.stach.v3.TableView.IGroup): factset.protobuf.stach.v3.TableView.Group; /** - * Encodes the specified MapOfMetadata message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.verify|verify} messages. - * @param message MapOfMetadata message or plain object to encode + * Encodes the specified Group message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Group.verify|verify} messages. + * @param message Group message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.TableView.IGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MapOfMetadata message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.verify|verify} messages. - * @param message MapOfMetadata message or plain object to encode + * Encodes the specified Group message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Group.verify|verify} messages. + * @param message Group message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.TableView.IGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MapOfMetadata message from the specified reader or buffer. + * Decodes a Group message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MapOfMetadata + * @returns Group * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.TableView.Group; /** - * Decodes a MapOfMetadata message from the specified reader or buffer, length delimited. + * Decodes a Group message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MapOfMetadata + * @returns Group * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.TableView.Group; /** - * Verifies a MapOfMetadata message. + * Verifies a Group message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MapOfMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a Group message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MapOfMetadata + * @returns Group */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.TableView.Group; /** - * Creates a plain object from a MapOfMetadata message. Also converts values to other types if specified. - * @param message MapOfMetadata + * Creates a plain object from a Group message. Also converts values to other types if specified. + * @param message Group * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.TableView.Group, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MapOfMetadata to JSON. + * Converts this Group to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Namespace table. */ - namespace table { - /** Properties of a CellDefinition. */ - interface ICellDefinition { + /** Properties of a CollapsedColumn. */ + interface ICollapsedColumn { - /** CellDefinition type */ - type?: (string|null); - - /** CellDefinition format */ - format?: (factset.protobuf.stach.v2.table.IDataFormat|null); + /** CollapsedColumn alias */ + alias?: (string|null); } - /** Represents a CellDefinition. */ - class CellDefinition implements ICellDefinition { + /** Represents a CollapsedColumn. */ + class CollapsedColumn implements ICollapsedColumn { /** - * Constructs a new CellDefinition. + * Constructs a new CollapsedColumn. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.table.ICellDefinition); - - /** CellDefinition type. */ - public type: string; + constructor(properties?: factset.protobuf.stach.v3.TableView.ICollapsedColumn); - /** CellDefinition format. */ - public format?: (factset.protobuf.stach.v2.table.IDataFormat|null); + /** CollapsedColumn alias. */ + public alias: string; /** - * Creates a new CellDefinition instance using the specified properties. + * Creates a new CollapsedColumn instance using the specified properties. * @param [properties] Properties to set - * @returns CellDefinition instance + * @returns CollapsedColumn instance */ - public static create(properties?: factset.protobuf.stach.v2.table.ICellDefinition): factset.protobuf.stach.v2.table.CellDefinition; + public static create(properties?: factset.protobuf.stach.v3.TableView.ICollapsedColumn): factset.protobuf.stach.v3.TableView.CollapsedColumn; /** - * Encodes the specified CellDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.CellDefinition.verify|verify} messages. - * @param message CellDefinition message or plain object to encode + * Encodes the specified CollapsedColumn message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.CollapsedColumn.verify|verify} messages. + * @param message CollapsedColumn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.table.ICellDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.TableView.ICollapsedColumn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CellDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.CellDefinition.verify|verify} messages. - * @param message CellDefinition message or plain object to encode + * Encodes the specified CollapsedColumn message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.CollapsedColumn.verify|verify} messages. + * @param message CollapsedColumn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.ICellDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.TableView.ICollapsedColumn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CellDefinition message from the specified reader or buffer. + * Decodes a CollapsedColumn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CellDefinition + * @returns CollapsedColumn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.CellDefinition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.TableView.CollapsedColumn; /** - * Decodes a CellDefinition message from the specified reader or buffer, length delimited. + * Decodes a CollapsedColumn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CellDefinition + * @returns CollapsedColumn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.CellDefinition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.TableView.CollapsedColumn; /** - * Verifies a CellDefinition message. + * Verifies a CollapsedColumn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CellDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a CollapsedColumn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CellDefinition + * @returns CollapsedColumn */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.CellDefinition; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.TableView.CollapsedColumn; /** - * Creates a plain object from a CellDefinition message. Also converts values to other types if specified. - * @param message CellDefinition + * Creates a plain object from a CollapsedColumn message. Also converts values to other types if specified. + * @param message CollapsedColumn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.table.CellDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.TableView.CollapsedColumn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CellDefinition to JSON. + * Converts this CollapsedColumn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ColumnData. */ - interface IColumnData { + /** Properties of a Split. */ + interface ISplit { - /** ColumnData ranges */ - ranges?: ({ [k: string]: number }|null); + /** Split alias */ + alias?: (string|null); - /** ColumnData values */ - values?: (google.protobuf.IListValue|null); + /** Split by */ + by?: (string[]|null); - /** ColumnData definitions */ - definitions?: (factset.protobuf.stach.v2.table.ICellDefinition[]|null); + /** Split include */ + include?: (string[]|null); + + /** Split over */ + over?: (string[]|null); + + /** Split headers */ + headers?: ({ [k: string]: string }|null); + + /** Split removeEmptySplitColumns */ + removeEmptySplitColumns?: (boolean|null); } - /** Represents a ColumnData. */ - class ColumnData implements IColumnData { + /** Represents a Split. */ + class Split implements ISplit { /** - * Constructs a new ColumnData. + * Constructs a new Split. * @param [properties] Properties to set */ - constructor(properties?: factset.protobuf.stach.v2.table.IColumnData); + constructor(properties?: factset.protobuf.stach.v3.TableView.ISplit); + + /** Split alias. */ + public alias: string; - /** ColumnData ranges. */ - public ranges: { [k: string]: number }; + /** Split by. */ + public by: string[]; - /** ColumnData values. */ - public values?: (google.protobuf.IListValue|null); + /** Split include. */ + public include: string[]; - /** ColumnData definitions. */ - public definitions: factset.protobuf.stach.v2.table.ICellDefinition[]; + /** Split over. */ + public over: string[]; + + /** Split headers. */ + public headers: { [k: string]: string }; + + /** Split removeEmptySplitColumns. */ + public removeEmptySplitColumns: boolean; /** - * Creates a new ColumnData instance using the specified properties. + * Creates a new Split instance using the specified properties. * @param [properties] Properties to set - * @returns ColumnData instance + * @returns Split instance */ - public static create(properties?: factset.protobuf.stach.v2.table.IColumnData): factset.protobuf.stach.v2.table.ColumnData; + public static create(properties?: factset.protobuf.stach.v3.TableView.ISplit): factset.protobuf.stach.v3.TableView.Split; /** - * Encodes the specified ColumnData message. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnData.verify|verify} messages. - * @param message ColumnData message or plain object to encode + * Encodes the specified Split message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Split.verify|verify} messages. + * @param message Split message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.table.IColumnData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.TableView.ISplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ColumnData message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnData.verify|verify} messages. - * @param message ColumnData message or plain object to encode + * Encodes the specified Split message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Split.verify|verify} messages. + * @param message Split message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IColumnData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.TableView.ISplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ColumnData message from the specified reader or buffer. + * Decodes a Split message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ColumnData + * @returns Split * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.ColumnData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.TableView.Split; /** - * Decodes a ColumnData message from the specified reader or buffer, length delimited. + * Decodes a Split message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ColumnData + * @returns Split * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.ColumnData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.TableView.Split; /** - * Verifies a ColumnData message. + * Verifies a Split message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ColumnData message from a plain object. Also converts values to their respective internal types. + * Creates a Split message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ColumnData + * @returns Split */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.ColumnData; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.TableView.Split; /** - * Creates a plain object from a ColumnData message. Also converts values to other types if specified. - * @param message ColumnData + * Creates a plain object from a Split message. Also converts values to other types if specified. + * @param message Split * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.table.ColumnData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.TableView.Split, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ColumnData to JSON. + * Converts this Split to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a ColumnDefinition. */ - interface IColumnDefinition { + /** Properties of a Views. */ + interface IViews { - /** ColumnDefinition id */ - id?: (string|null); + /** Views views */ + views?: (factset.protobuf.stach.v3.Views.IView[]|null); + } - /** ColumnDefinition name */ - name?: (string|null); - - /** ColumnDefinition description */ - description?: (string|null); - - /** ColumnDefinition type */ - type?: (string|null); - - /** ColumnDefinition isDimension */ - isDimension?: (boolean|null); - - /** ColumnDefinition isHidden */ - isHidden?: (boolean|null); - - /** ColumnDefinition nextSiblingId */ - nextSiblingId?: (string|null); - - /** ColumnDefinition parentId */ - parentId?: (string|null); - - /** ColumnDefinition headerId */ - headerId?: (string|null); - - /** ColumnDefinition format */ - format?: (factset.protobuf.stach.v2.table.IDataFormat|null); - } - - /** Represents a ColumnDefinition. */ - class ColumnDefinition implements IColumnDefinition { - - /** - * Constructs a new ColumnDefinition. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IColumnDefinition); - - /** ColumnDefinition id. */ - public id: string; - - /** ColumnDefinition name. */ - public name: string; - - /** ColumnDefinition description. */ - public description: string; - - /** ColumnDefinition type. */ - public type: string; - - /** ColumnDefinition isDimension. */ - public isDimension: boolean; - - /** ColumnDefinition isHidden. */ - public isHidden: boolean; - - /** ColumnDefinition nextSiblingId. */ - public nextSiblingId: string; - - /** ColumnDefinition parentId. */ - public parentId: string; - - /** ColumnDefinition headerId. */ - public headerId: string; - - /** ColumnDefinition format. */ - public format?: (factset.protobuf.stach.v2.table.IDataFormat|null); - - /** - * Creates a new ColumnDefinition instance using the specified properties. - * @param [properties] Properties to set - * @returns ColumnDefinition instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IColumnDefinition): factset.protobuf.stach.v2.table.ColumnDefinition; - - /** - * Encodes the specified ColumnDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnDefinition.verify|verify} messages. - * @param message ColumnDefinition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IColumnDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ColumnDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnDefinition.verify|verify} messages. - * @param message ColumnDefinition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IColumnDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ColumnDefinition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ColumnDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.ColumnDefinition; - - /** - * Decodes a ColumnDefinition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ColumnDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.ColumnDefinition; - - /** - * Verifies a ColumnDefinition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ColumnDefinition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ColumnDefinition - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.ColumnDefinition; - - /** - * Creates a plain object from a ColumnDefinition message. Also converts values to other types if specified. - * @param message ColumnDefinition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.ColumnDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ColumnDefinition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DataFormat. */ - interface IDataFormat { - - /** DataFormat format */ - format?: (string|null); - - /** DataFormat nullFormat */ - nullFormat?: (string|null); - - /** DataFormat halign */ - halign?: (factset.protobuf.stach.v2.table.HorizontalAlignment|null); - - /** DataFormat valign */ - valign?: (factset.protobuf.stach.v2.table.VerticalAlignment|null); - } - - /** Represents a DataFormat. */ - class DataFormat implements IDataFormat { - - /** - * Constructs a new DataFormat. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IDataFormat); - - /** DataFormat format. */ - public format: string; - - /** DataFormat nullFormat. */ - public nullFormat: string; - - /** DataFormat halign. */ - public halign: factset.protobuf.stach.v2.table.HorizontalAlignment; - - /** DataFormat valign. */ - public valign: factset.protobuf.stach.v2.table.VerticalAlignment; - - /** - * Creates a new DataFormat instance using the specified properties. - * @param [properties] Properties to set - * @returns DataFormat instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IDataFormat): factset.protobuf.stach.v2.table.DataFormat; - - /** - * Encodes the specified DataFormat message. Does not implicitly {@link factset.protobuf.stach.v2.table.DataFormat.verify|verify} messages. - * @param message DataFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IDataFormat, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DataFormat message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.DataFormat.verify|verify} messages. - * @param message DataFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IDataFormat, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataFormat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.DataFormat; - - /** - * Decodes a DataFormat message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.DataFormat; - - /** - * Verifies a DataFormat message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DataFormat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataFormat - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.DataFormat; - - /** - * Creates a plain object from a DataFormat message. Also converts values to other types if specified. - * @param message DataFormat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.DataFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DataFormat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** HorizontalAlignment enum. */ - enum HorizontalAlignment { - UNKNOWN_HALIGN = 0, - LEFT = 1, - CENTER = 2, - RIGHT = 3 - } - - /** Properties of a ListOfMetadata. */ - interface IListOfMetadata { - - /** ListOfMetadata ids */ - ids?: (string[]|null); - } - - /** Represents a ListOfMetadata. */ - class ListOfMetadata implements IListOfMetadata { - - /** - * Constructs a new ListOfMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IListOfMetadata); - - /** ListOfMetadata ids. */ - public ids: string[]; - - /** - * Creates a new ListOfMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ListOfMetadata instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IListOfMetadata): factset.protobuf.stach.v2.table.ListOfMetadata; - - /** - * Encodes the specified ListOfMetadata message. Does not implicitly {@link factset.protobuf.stach.v2.table.ListOfMetadata.verify|verify} messages. - * @param message ListOfMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IListOfMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListOfMetadata message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.ListOfMetadata.verify|verify} messages. - * @param message ListOfMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IListOfMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListOfMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListOfMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.ListOfMetadata; - - /** - * Decodes a ListOfMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListOfMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.ListOfMetadata; - - /** - * Verifies a ListOfMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListOfMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListOfMetadata - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.ListOfMetadata; - - /** - * Creates a plain object from a ListOfMetadata message. Also converts values to other types if specified. - * @param message ListOfMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.ListOfMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListOfMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MetadataCollection. */ - interface IMetadataCollection { - - /** MetadataCollection items */ - items?: ({ [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }|null); - - /** MetadataCollection locations */ - locations?: (factset.protobuf.stach.v2.table.IMetadataLocations|null); - } - - /** Represents a MetadataCollection. */ - class MetadataCollection implements IMetadataCollection { - - /** - * Constructs a new MetadataCollection. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IMetadataCollection); - - /** MetadataCollection items. */ - public items: { [k: string]: factset.protobuf.stach.v2.table.IMetadataItem }; - - /** MetadataCollection locations. */ - public locations?: (factset.protobuf.stach.v2.table.IMetadataLocations|null); - - /** - * Creates a new MetadataCollection instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataCollection instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IMetadataCollection): factset.protobuf.stach.v2.table.MetadataCollection; - - /** - * Encodes the specified MetadataCollection message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataCollection.verify|verify} messages. - * @param message MetadataCollection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IMetadataCollection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataCollection message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataCollection.verify|verify} messages. - * @param message MetadataCollection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IMetadataCollection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataCollection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.MetadataCollection; - - /** - * Decodes a MetadataCollection message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.MetadataCollection; - - /** - * Verifies a MetadataCollection message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetadataCollection message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataCollection - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.MetadataCollection; - - /** - * Creates a plain object from a MetadataCollection message. Also converts values to other types if specified. - * @param message MetadataCollection - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.MetadataCollection, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataCollection to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MetadataItem. */ - interface IMetadataItem { - - /** MetadataItem value */ - value?: (google.protobuf.IValue|null); - - /** MetadataItem reference */ - reference?: (factset.protobuf.stach.v2.table.IReference|null); - } - - /** Represents a MetadataItem. */ - class MetadataItem implements IMetadataItem { - - /** - * Constructs a new MetadataItem. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IMetadataItem); - - /** MetadataItem value. */ - public value?: (google.protobuf.IValue|null); - - /** MetadataItem reference. */ - public reference?: (factset.protobuf.stach.v2.table.IReference|null); - - /** MetadataItem data. */ - public data?: ("value"|"reference"); - - /** - * Creates a new MetadataItem instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataItem instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IMetadataItem): factset.protobuf.stach.v2.table.MetadataItem; - - /** - * Encodes the specified MetadataItem message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataItem.verify|verify} messages. - * @param message MetadataItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IMetadataItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataItem message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataItem.verify|verify} messages. - * @param message MetadataItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IMetadataItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.MetadataItem; - - /** - * Decodes a MetadataItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.MetadataItem; - - /** - * Verifies a MetadataItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetadataItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataItem - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.MetadataItem; - - /** - * Creates a plain object from a MetadataItem message. Also converts values to other types if specified. - * @param message MetadataItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.MetadataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MetadataLocations. */ - interface IMetadataLocations { - - /** MetadataLocations table */ - table?: (string[]|null); - - /** MetadataLocations columns */ - columns?: ({ [k: string]: factset.protobuf.stach.v2.table.IListOfMetadata }|null); - - /** MetadataLocations rows */ - rows?: ({ [k: string]: factset.protobuf.stach.v2.table.IListOfMetadata }|null); - - /** MetadataLocations cells */ - cells?: (factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap|null); - } - - /** Represents a MetadataLocations. */ - class MetadataLocations implements IMetadataLocations { - - /** - * Constructs a new MetadataLocations. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IMetadataLocations); - - /** MetadataLocations table. */ - public table: string[]; - - /** MetadataLocations columns. */ - public columns: { [k: string]: factset.protobuf.stach.v2.table.IListOfMetadata }; - - /** MetadataLocations rows. */ - public rows: { [k: string]: factset.protobuf.stach.v2.table.IListOfMetadata }; - - /** MetadataLocations cells. */ - public cells?: (factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap|null); - - /** - * Creates a new MetadataLocations instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataLocations instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IMetadataLocations): factset.protobuf.stach.v2.table.MetadataLocations; - - /** - * Encodes the specified MetadataLocations message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.verify|verify} messages. - * @param message MetadataLocations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IMetadataLocations, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataLocations message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.verify|verify} messages. - * @param message MetadataLocations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IMetadataLocations, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataLocations message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataLocations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.MetadataLocations; - - /** - * Decodes a MetadataLocations message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataLocations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.MetadataLocations; - - /** - * Verifies a MetadataLocations message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetadataLocations message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataLocations - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.MetadataLocations; - - /** - * Creates a plain object from a MetadataLocations message. Also converts values to other types if specified. - * @param message MetadataLocations - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.MetadataLocations, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataLocations to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace MetadataLocations { - - /** Properties of a CellsColumnMap. */ - interface ICellsColumnMap { - - /** CellsColumnMap columns */ - columns?: ({ [k: string]: factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap }|null); - } - - /** Represents a CellsColumnMap. */ - class CellsColumnMap implements ICellsColumnMap { - - /** - * Constructs a new CellsColumnMap. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap); - - /** CellsColumnMap columns. */ - public columns: { [k: string]: factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap }; - - /** - * Creates a new CellsColumnMap instance using the specified properties. - * @param [properties] Properties to set - * @returns CellsColumnMap instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap): factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap; - - /** - * Encodes the specified CellsColumnMap message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.verify|verify} messages. - * @param message CellsColumnMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CellsColumnMap message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.verify|verify} messages. - * @param message CellsColumnMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CellsColumnMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CellsColumnMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap; - - /** - * Decodes a CellsColumnMap message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CellsColumnMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap; - - /** - * Verifies a CellsColumnMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CellsColumnMap message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CellsColumnMap - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap; - - /** - * Creates a plain object from a CellsColumnMap message. Also converts values to other types if specified. - * @param message CellsColumnMap - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CellsColumnMap to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CellsRowMap. */ - interface ICellsRowMap { - - /** CellsRowMap rows */ - rows?: ({ [k: string]: factset.protobuf.stach.v2.table.IListOfMetadata }|null); - } - - /** Represents a CellsRowMap. */ - class CellsRowMap implements ICellsRowMap { - - /** - * Constructs a new CellsRowMap. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap); - - /** CellsRowMap rows. */ - public rows: { [k: string]: factset.protobuf.stach.v2.table.IListOfMetadata }; - - /** - * Creates a new CellsRowMap instance using the specified properties. - * @param [properties] Properties to set - * @returns CellsRowMap instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap): factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap; - - /** - * Encodes the specified CellsRowMap message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.verify|verify} messages. - * @param message CellsRowMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CellsRowMap message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.verify|verify} messages. - * @param message CellsRowMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CellsRowMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CellsRowMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap; - - /** - * Decodes a CellsRowMap message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CellsRowMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap; - - /** - * Verifies a CellsRowMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CellsRowMap message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CellsRowMap - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap; - - /** - * Creates a plain object from a CellsRowMap message. Also converts values to other types if specified. - * @param message CellsRowMap - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CellsRowMap to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a Reference. */ - interface IReference { - - /** Reference referenceType */ - referenceType?: (factset.protobuf.stach.v2.table.ReferenceType|null); - - /** Reference tableId */ - tableId?: (string|null); - - /** Reference columnId */ - columnId?: (string|null); - - /** Reference rowId */ - rowId?: (string|null); - } - - /** Represents a Reference. */ - class Reference implements IReference { - - /** - * Constructs a new Reference. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IReference); - - /** Reference referenceType. */ - public referenceType: factset.protobuf.stach.v2.table.ReferenceType; - - /** Reference tableId. */ - public tableId: string; - - /** Reference columnId. */ - public columnId: string; - - /** Reference rowId. */ - public rowId: string; - - /** - * Creates a new Reference instance using the specified properties. - * @param [properties] Properties to set - * @returns Reference instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IReference): factset.protobuf.stach.v2.table.Reference; + /** Represents a Views. */ + class Views implements IViews { - /** - * Encodes the specified Reference message. Does not implicitly {@link factset.protobuf.stach.v2.table.Reference.verify|verify} messages. - * @param message Reference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IReference, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Reference message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.Reference.verify|verify} messages. - * @param message Reference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IReference, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Reference message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Reference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.Reference; - - /** - * Decodes a Reference message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Reference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.Reference; - - /** - * Verifies a Reference message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Reference message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Reference - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.Reference; - - /** - * Creates a plain object from a Reference message. Also converts values to other types if specified. - * @param message Reference - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.Reference, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Reference to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** ReferenceType enum. */ - enum ReferenceType { - UNKNOWN_REFERENCE_TYPE = 0, - TABLE = 1, - COLUMN = 2, - ROW = 3, - CELL = 4 - } - - /** Properties of a RowDefinition. */ - interface IRowDefinition { - - /** RowDefinition id */ - id?: (string|null); - - /** RowDefinition format */ - format?: (factset.protobuf.stach.v2.table.IDataFormat|null); - } - - /** Represents a RowDefinition. */ - class RowDefinition implements IRowDefinition { - - /** - * Constructs a new RowDefinition. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.IRowDefinition); - - /** RowDefinition id. */ - public id: string; - - /** RowDefinition format. */ - public format?: (factset.protobuf.stach.v2.table.IDataFormat|null); - - /** - * Creates a new RowDefinition instance using the specified properties. - * @param [properties] Properties to set - * @returns RowDefinition instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.IRowDefinition): factset.protobuf.stach.v2.table.RowDefinition; - - /** - * Encodes the specified RowDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.RowDefinition.verify|verify} messages. - * @param message RowDefinition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.IRowDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RowDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.RowDefinition.verify|verify} messages. - * @param message RowDefinition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.IRowDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RowDefinition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RowDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.RowDefinition; - - /** - * Decodes a RowDefinition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RowDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.RowDefinition; - - /** - * Verifies a RowDefinition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RowDefinition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RowDefinition - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.RowDefinition; - - /** - * Creates a plain object from a RowDefinition message. Also converts values to other types if specified. - * @param message RowDefinition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.RowDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RowDefinition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Table. */ - interface ITable { - - /** Table definition */ - definition?: (factset.protobuf.stach.v2.table.ITableDefinition|null); - - /** Table data */ - data?: (factset.protobuf.stach.v2.table.ITableData|null); - } - - /** Represents a Table. */ - class Table implements ITable { - - /** - * Constructs a new Table. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.ITable); + /** + * Constructs a new Views. + * @param [properties] Properties to set + */ + constructor(properties?: factset.protobuf.stach.v3.IViews); - /** Table definition. */ - public definition?: (factset.protobuf.stach.v2.table.ITableDefinition|null); + /** Views views. */ + public views: factset.protobuf.stach.v3.Views.IView[]; - /** Table data. */ - public data?: (factset.protobuf.stach.v2.table.ITableData|null); + /** + * Creates a new Views instance using the specified properties. + * @param [properties] Properties to set + * @returns Views instance + */ + public static create(properties?: factset.protobuf.stach.v3.IViews): factset.protobuf.stach.v3.Views; - /** - * Creates a new Table instance using the specified properties. - * @param [properties] Properties to set - * @returns Table instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.ITable): factset.protobuf.stach.v2.table.Table; + /** + * Encodes the specified Views message. Does not implicitly {@link factset.protobuf.stach.v3.Views.verify|verify} messages. + * @param message Views message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: factset.protobuf.stach.v3.IViews, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Table message. Does not implicitly {@link factset.protobuf.stach.v2.table.Table.verify|verify} messages. - * @param message Table message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Views message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Views.verify|verify} messages. + * @param message Views message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: factset.protobuf.stach.v3.IViews, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.Table.verify|verify} messages. - * @param message Table message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Views message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Views + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Views; - /** - * Decodes a Table message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Table - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.Table; + /** + * Decodes a Views message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Views + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Views; - /** - * Decodes a Table message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Table - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.Table; + /** + * Verifies a Views message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a Table message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a Views message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Views + */ + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Views; - /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Table - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.Table; + /** + * Creates a plain object from a Views message. Also converts values to other types if specified. + * @param message Views + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: factset.protobuf.stach.v3.Views, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a Table message. Also converts values to other types if specified. - * @param message Table - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: factset.protobuf.stach.v2.table.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this Views to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this Table to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + namespace Views { - /** Properties of a TableData. */ - interface ITableData { + /** Properties of a View. */ + interface IView { - /** TableData rows */ - rows?: (factset.protobuf.stach.v2.table.IRowDefinition[]|null); + /** View name */ + name?: (string|null); - /** TableData columns */ - columns?: ({ [k: string]: factset.protobuf.stach.v2.table.IColumnData }|null); + /** View displayName */ + displayName?: (string|null); - /** TableData metadata */ - metadata?: (factset.protobuf.stach.v2.table.IMetadataCollection|null); + /** View table */ + table?: (factset.protobuf.stach.v3.ITableView|null); } - /** Represents a TableData. */ - class TableData implements ITableData { - - /** - * Constructs a new TableData. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.ITableData); - - /** TableData rows. */ - public rows: factset.protobuf.stach.v2.table.IRowDefinition[]; - - /** TableData columns. */ - public columns: { [k: string]: factset.protobuf.stach.v2.table.IColumnData }; - - /** TableData metadata. */ - public metadata?: (factset.protobuf.stach.v2.table.IMetadataCollection|null); + /** Represents a View. */ + class View implements IView { /** - * Creates a new TableData instance using the specified properties. + * Constructs a new View. * @param [properties] Properties to set - * @returns TableData instance - */ - public static create(properties?: factset.protobuf.stach.v2.table.ITableData): factset.protobuf.stach.v2.table.TableData; - - /** - * Encodes the specified TableData message. Does not implicitly {@link factset.protobuf.stach.v2.table.TableData.verify|verify} messages. - * @param message TableData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: factset.protobuf.stach.v2.table.ITableData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TableData message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.TableData.verify|verify} messages. - * @param message TableData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.ITableData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TableData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TableData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.TableData; - - /** - * Decodes a TableData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TableData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.TableData; - - /** - * Verifies a TableData message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TableData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TableData - */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.TableData; - - /** - * Creates a plain object from a TableData message. Also converts values to other types if specified. - * @param message TableData - * @param [options] Conversion options - * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.table.TableData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + constructor(properties?: factset.protobuf.stach.v3.Views.IView); - /** - * Converts this TableData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TableDefinition. */ - interface ITableDefinition { - - /** TableDefinition headerTableId */ - headerTableId?: (string|null); - - /** TableDefinition columns */ - columns?: (factset.protobuf.stach.v2.table.IColumnDefinition[]|null); - } - - /** Represents a TableDefinition. */ - class TableDefinition implements ITableDefinition { + /** View name. */ + public name: string; - /** - * Constructs a new TableDefinition. - * @param [properties] Properties to set - */ - constructor(properties?: factset.protobuf.stach.v2.table.ITableDefinition); + /** View displayName. */ + public displayName: string; - /** TableDefinition headerTableId. */ - public headerTableId: string; + /** View table. */ + public table?: (factset.protobuf.stach.v3.ITableView|null); - /** TableDefinition columns. */ - public columns: factset.protobuf.stach.v2.table.IColumnDefinition[]; + /** View type. */ + public type?: "table"; /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new View instance using the specified properties. * @param [properties] Properties to set - * @returns TableDefinition instance + * @returns View instance */ - public static create(properties?: factset.protobuf.stach.v2.table.ITableDefinition): factset.protobuf.stach.v2.table.TableDefinition; + public static create(properties?: factset.protobuf.stach.v3.Views.IView): factset.protobuf.stach.v3.Views.View; /** - * Encodes the specified TableDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.TableDefinition.verify|verify} messages. - * @param message TableDefinition message or plain object to encode + * Encodes the specified View message. Does not implicitly {@link factset.protobuf.stach.v3.Views.View.verify|verify} messages. + * @param message View message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: factset.protobuf.stach.v2.table.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: factset.protobuf.stach.v3.Views.IView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.TableDefinition.verify|verify} messages. - * @param message TableDefinition message or plain object to encode + * Encodes the specified View message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Views.View.verify|verify} messages. + * @param message View message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: factset.protobuf.stach.v2.table.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: factset.protobuf.stach.v3.Views.IView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a View message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TableDefinition + * @returns View * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v2.table.TableDefinition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): factset.protobuf.stach.v3.Views.View; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a View message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableDefinition + * @returns View * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v2.table.TableDefinition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): factset.protobuf.stach.v3.Views.View; /** - * Verifies a TableDefinition message. + * Verifies a View message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a View message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TableDefinition + * @returns View */ - public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v2.table.TableDefinition; + public static fromObject(object: { [k: string]: any }): factset.protobuf.stach.v3.Views.View; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. - * @param message TableDefinition + * Creates a plain object from a View message. Also converts values to other types if specified. + * @param message View * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: factset.protobuf.stach.v2.table.TableDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: factset.protobuf.stach.v3.Views.View, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableDefinition to JSON. + * Converts this View to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - - /** VerticalAlignment enum. */ - enum VerticalAlignment { - UNKNOWN_VALIGN = 0, - TOP = 1, - MIDDLE = 2, - BOTTOM = 3 - } } } } diff --git a/js/packages/stach/stach.js b/js/packages/stach/stach.js index 10800e4..8db90be 100644 --- a/js/packages/stach/stach.js +++ b/js/packages/stach/stach.js @@ -36,37 +36,35 @@ $root.factset = (function() { */ var stach = {}; - stach.v2 = (function() { + stach.v3 = (function() { /** - * Namespace v2. + * Namespace v3. * @memberof factset.protobuf.stach * @namespace */ - var v2 = {}; + var v3 = {}; - v2.Package = (function() { + v3.Column = (function() { /** - * Properties of a Package. - * @memberof factset.protobuf.stach.v2 - * @interface IPackage - * @property {string|null} [version] Package version - * @property {Array.|null} [primaryTableIds] Package primaryTableIds - * @property {Object.|null} [tables] Package tables + * Properties of a Column. + * @memberof factset.protobuf.stach.v3 + * @interface IColumn + * @property {string|null} [contextualType] Column contextualType + * @property {Object.|null} [customMetadata] Column customMetadata */ /** - * Constructs a new Package. - * @memberof factset.protobuf.stach.v2 - * @classdesc Represents a Package. - * @implements IPackage + * Constructs a new Column. + * @memberof factset.protobuf.stach.v3 + * @classdesc Represents a Column. + * @implements IColumn * @constructor - * @param {factset.protobuf.stach.v2.IPackage=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.IColumn=} [properties] Properties to set */ - function Package(properties) { - this.primaryTableIds = []; - this.tables = {}; + function Column(properties) { + this.customMetadata = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74,108 +72,92 @@ $root.factset = (function() { } /** - * Package version. - * @member {string} version - * @memberof factset.protobuf.stach.v2.Package - * @instance - */ - Package.prototype.version = ""; - - /** - * Package primaryTableIds. - * @member {Array.} primaryTableIds - * @memberof factset.protobuf.stach.v2.Package + * Column contextualType. + * @member {string} contextualType + * @memberof factset.protobuf.stach.v3.Column * @instance */ - Package.prototype.primaryTableIds = $util.emptyArray; + Column.prototype.contextualType = ""; /** - * Package tables. - * @member {Object.} tables - * @memberof factset.protobuf.stach.v2.Package + * Column customMetadata. + * @member {Object.} customMetadata + * @memberof factset.protobuf.stach.v3.Column * @instance */ - Package.prototype.tables = $util.emptyObject; + Column.prototype.customMetadata = $util.emptyObject; /** - * Creates a new Package instance using the specified properties. + * Creates a new Column instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static - * @param {factset.protobuf.stach.v2.IPackage=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.Package} Package instance + * @param {factset.protobuf.stach.v3.IColumn=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Column} Column instance */ - Package.create = function create(properties) { - return new Package(properties); + Column.create = function create(properties) { + return new Column(properties); }; /** - * Encodes the specified Package message. Does not implicitly {@link factset.protobuf.stach.v2.Package.verify|verify} messages. + * Encodes the specified Column message. Does not implicitly {@link factset.protobuf.stach.v3.Column.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static - * @param {factset.protobuf.stach.v2.IPackage} message Package message or plain object to encode + * @param {factset.protobuf.stach.v3.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Package.encode = function encode(message, writer) { + Column.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.primaryTableIds != null && message.primaryTableIds.length) - for (var i = 0; i < message.primaryTableIds.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.primaryTableIds[i]); - if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) - for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + if (message.contextualType != null && Object.hasOwnProperty.call(message, "contextualType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.contextualType); + if (message.customMetadata != null && Object.hasOwnProperty.call(message, "customMetadata")) + for (var keys = Object.keys(message.customMetadata), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100, wireType 2 =*/802).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.factset.protobuf.stach.v3.MetadataItem.encode(message.customMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } return writer; }; /** - * Encodes the specified Package message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.Package.verify|verify} messages. + * Encodes the specified Column message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Column.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static - * @param {factset.protobuf.stach.v2.IPackage} message Package message or plain object to encode + * @param {factset.protobuf.stach.v3.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Package.encodeDelimited = function encodeDelimited(message, writer) { + Column.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Package message from the specified reader or buffer. + * Decodes a Column message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.Package} Package + * @returns {factset.protobuf.stach.v3.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Package.decode = function decode(reader, length) { + Column.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.Package(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Column(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = reader.string(); + message.contextualType = reader.string(); break; - case 2: - if (!(message.primaryTableIds && message.primaryTableIds.length)) - message.primaryTableIds = []; - message.primaryTableIds.push(reader.string()); - break; - case 3: - if (message.tables === $util.emptyObject) - message.tables = {}; + case 100: + if (message.customMetadata === $util.emptyObject) + message.customMetadata = {}; var end2 = reader.uint32() + reader.pos; key = ""; value = null; @@ -186,14 +168,14 @@ $root.factset = (function() { key = reader.string(); break; case 2: - value = $root.factset.protobuf.stach.v2.table.Table.decode(reader, reader.uint32()); + value = $root.factset.protobuf.stach.v3.MetadataItem.decode(reader, reader.uint32()); break; default: reader.skipType(tag2 & 7); break; } } - message.tables[key] = value; + message.customMetadata[key] = value; break; default: reader.skipType(tag & 7); @@ -204,158 +186,359 @@ $root.factset = (function() { }; /** - * Decodes a Package message from the specified reader or buffer, length delimited. + * Decodes a Column message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.Package} Package + * @returns {factset.protobuf.stach.v3.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Package.decodeDelimited = function decodeDelimited(reader) { + Column.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Package message. + * Verifies a Column message. * @function verify - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Package.verify = function verify(message) { + Column.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.primaryTableIds != null && message.hasOwnProperty("primaryTableIds")) { - if (!Array.isArray(message.primaryTableIds)) - return "primaryTableIds: array expected"; - for (var i = 0; i < message.primaryTableIds.length; ++i) - if (!$util.isString(message.primaryTableIds[i])) - return "primaryTableIds: string[] expected"; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!$util.isObject(message.tables)) - return "tables: object expected"; - var key = Object.keys(message.tables); + if (message.contextualType != null && message.hasOwnProperty("contextualType")) + if (!$util.isString(message.contextualType)) + return "contextualType: string expected"; + if (message.customMetadata != null && message.hasOwnProperty("customMetadata")) { + if (!$util.isObject(message.customMetadata)) + return "customMetadata: object expected"; + var key = Object.keys(message.customMetadata); for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.Table.verify(message.tables[key[i]]); + var error = $root.factset.protobuf.stach.v3.MetadataItem.verify(message.customMetadata[key[i]]); if (error) - return "tables." + error; + return "customMetadata." + error; } } return null; }; /** - * Creates a Package message from a plain object. Also converts values to their respective internal types. + * Creates a Column message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.Package} Package + * @returns {factset.protobuf.stach.v3.Column} Column */ - Package.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.Package) + Column.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Column) return object; - var message = new $root.factset.protobuf.stach.v2.Package(); - if (object.version != null) - message.version = String(object.version); - if (object.primaryTableIds) { - if (!Array.isArray(object.primaryTableIds)) - throw TypeError(".factset.protobuf.stach.v2.Package.primaryTableIds: array expected"); - message.primaryTableIds = []; - for (var i = 0; i < object.primaryTableIds.length; ++i) - message.primaryTableIds[i] = String(object.primaryTableIds[i]); - } - if (object.tables) { - if (typeof object.tables !== "object") - throw TypeError(".factset.protobuf.stach.v2.Package.tables: object expected"); - message.tables = {}; - for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { - if (typeof object.tables[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.Package.tables: object expected"); - message.tables[keys[i]] = $root.factset.protobuf.stach.v2.table.Table.fromObject(object.tables[keys[i]]); + var message = new $root.factset.protobuf.stach.v3.Column(); + if (object.contextualType != null) + message.contextualType = String(object.contextualType); + if (object.customMetadata) { + if (typeof object.customMetadata !== "object") + throw TypeError(".factset.protobuf.stach.v3.Column.customMetadata: object expected"); + message.customMetadata = {}; + for (var keys = Object.keys(object.customMetadata), i = 0; i < keys.length; ++i) { + if (typeof object.customMetadata[keys[i]] !== "object") + throw TypeError(".factset.protobuf.stach.v3.Column.customMetadata: object expected"); + message.customMetadata[keys[i]] = $root.factset.protobuf.stach.v3.MetadataItem.fromObject(object.customMetadata[keys[i]]); } } return message; }; /** - * Creates a plain object from a Package message. Also converts values to other types if specified. + * Creates a plain object from a Column message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.Column * @static - * @param {factset.protobuf.stach.v2.Package} message Package + * @param {factset.protobuf.stach.v3.Column} message Column * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Package.toObject = function toObject(message, options) { + Column.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.primaryTableIds = []; if (options.objects || options.defaults) - object.tables = {}; + object.customMetadata = {}; if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.primaryTableIds && message.primaryTableIds.length) { - object.primaryTableIds = []; - for (var j = 0; j < message.primaryTableIds.length; ++j) - object.primaryTableIds[j] = message.primaryTableIds[j]; - } + object.contextualType = ""; + if (message.contextualType != null && message.hasOwnProperty("contextualType")) + object.contextualType = message.contextualType; var keys2; - if (message.tables && (keys2 = Object.keys(message.tables)).length) { - object.tables = {}; + if (message.customMetadata && (keys2 = Object.keys(message.customMetadata)).length) { + object.customMetadata = {}; for (var j = 0; j < keys2.length; ++j) - object.tables[keys2[j]] = $root.factset.protobuf.stach.v2.table.Table.toObject(message.tables[keys2[j]], options); + object.customMetadata[keys2[j]] = $root.factset.protobuf.stach.v3.MetadataItem.toObject(message.customMetadata[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Column to JSON. + * @function toJSON + * @memberof factset.protobuf.stach.v3.Column + * @instance + * @returns {Object.} JSON object + */ + Column.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Column; + })(); + + v3.MetadataItem = (function() { + + /** + * Properties of a MetadataItem. + * @memberof factset.protobuf.stach.v3 + * @interface IMetadataItem + * @property {string|null} [contextualType] MetadataItem contextualType + * @property {google.protobuf.IValue|null} [value] MetadataItem value + */ + + /** + * Constructs a new MetadataItem. + * @memberof factset.protobuf.stach.v3 + * @classdesc Represents a MetadataItem. + * @implements IMetadataItem + * @constructor + * @param {factset.protobuf.stach.v3.IMetadataItem=} [properties] Properties to set + */ + function MetadataItem(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MetadataItem contextualType. + * @member {string} contextualType + * @memberof factset.protobuf.stach.v3.MetadataItem + * @instance + */ + MetadataItem.prototype.contextualType = ""; + + /** + * MetadataItem value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof factset.protobuf.stach.v3.MetadataItem + * @instance + */ + MetadataItem.prototype.value = null; + + /** + * Creates a new MetadataItem instance using the specified properties. + * @function create + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {factset.protobuf.stach.v3.IMetadataItem=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.MetadataItem} MetadataItem instance + */ + MetadataItem.create = function create(properties) { + return new MetadataItem(properties); + }; + + /** + * Encodes the specified MetadataItem message. Does not implicitly {@link factset.protobuf.stach.v3.MetadataItem.verify|verify} messages. + * @function encode + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {factset.protobuf.stach.v3.IMetadataItem} message MetadataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetadataItem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.contextualType != null && Object.hasOwnProperty.call(message, "contextualType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.contextualType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MetadataItem message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.MetadataItem.verify|verify} messages. + * @function encodeDelimited + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {factset.protobuf.stach.v3.IMetadataItem} message MetadataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetadataItem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetadataItem message from the specified reader or buffer. + * @function decode + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {factset.protobuf.stach.v3.MetadataItem} MetadataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetadataItem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.MetadataItem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contextualType = reader.string(); + break; + case 2: + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetadataItem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {factset.protobuf.stach.v3.MetadataItem} MetadataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetadataItem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetadataItem message. + * @function verify + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetadataItem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.contextualType != null && message.hasOwnProperty("contextualType")) + if (!$util.isString(message.contextualType)) + return "contextualType: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + /** + * Creates a MetadataItem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {Object.} object Plain object + * @returns {factset.protobuf.stach.v3.MetadataItem} MetadataItem + */ + MetadataItem.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.MetadataItem) + return object; + var message = new $root.factset.protobuf.stach.v3.MetadataItem(); + if (object.contextualType != null) + message.contextualType = String(object.contextualType); + if (object.value != null) { + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + return message; + }; + + /** + * Creates a plain object from a MetadataItem message. Also converts values to other types if specified. + * @function toObject + * @memberof factset.protobuf.stach.v3.MetadataItem + * @static + * @param {factset.protobuf.stach.v3.MetadataItem} message MetadataItem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetadataItem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.contextualType = ""; + object.value = null; } + if (message.contextualType != null && message.hasOwnProperty("contextualType")) + object.contextualType = message.contextualType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); return object; }; /** - * Converts this Package to JSON. + * Converts this MetadataItem to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.Package + * @memberof factset.protobuf.stach.v3.MetadataItem * @instance * @returns {Object.} JSON object */ - Package.prototype.toJSON = function toJSON() { + MetadataItem.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Package; + return MetadataItem; })(); - v2.RowOrganizedPackage = (function() { + v3.RowOrganizedTable = (function() { /** - * Properties of a RowOrganizedPackage. - * @memberof factset.protobuf.stach.v2 - * @interface IRowOrganizedPackage - * @property {string|null} [version] RowOrganizedPackage version - * @property {Object.|null} [tables] RowOrganizedPackage tables + * Properties of a RowOrganizedTable. + * @memberof factset.protobuf.stach.v3 + * @interface IRowOrganizedTable + * @property {string|null} [version] RowOrganizedTable version + * @property {string|null} [name] RowOrganizedTable name + * @property {Array.|null} [columns] RowOrganizedTable columns + * @property {factset.protobuf.stach.v3.ITable|null} [table] RowOrganizedTable table + * @property {factset.protobuf.stach.v3.IRowOrganizedTable|null} [multiLevelHeadersTable] RowOrganizedTable multiLevelHeadersTable + * @property {Array.|null} [views] RowOrganizedTable views + * @property {Array.|null} [headerRows] RowOrganizedTable headerRows + * @property {Array.|null} [rows] RowOrganizedTable rows */ /** - * Constructs a new RowOrganizedPackage. - * @memberof factset.protobuf.stach.v2 - * @classdesc Represents a RowOrganizedPackage. - * @implements IRowOrganizedPackage + * Constructs a new RowOrganizedTable. + * @memberof factset.protobuf.stach.v3 + * @classdesc Represents a RowOrganizedTable. + * @implements IRowOrganizedTable * @constructor - * @param {factset.protobuf.stach.v2.IRowOrganizedPackage=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.IRowOrganizedTable=} [properties] Properties to set */ - function RowOrganizedPackage(properties) { - this.tables = {}; + function RowOrganizedTable(properties) { + this.columns = []; + this.views = []; + this.headerRows = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -363,83 +546,144 @@ $root.factset = (function() { } /** - * RowOrganizedPackage version. + * RowOrganizedTable version. * @member {string} version - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @instance + */ + RowOrganizedTable.prototype.version = ""; + + /** + * RowOrganizedTable name. + * @member {string} name + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @instance + */ + RowOrganizedTable.prototype.name = ""; + + /** + * RowOrganizedTable columns. + * @member {Array.} columns + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @instance */ - RowOrganizedPackage.prototype.version = ""; + RowOrganizedTable.prototype.columns = $util.emptyArray; /** - * RowOrganizedPackage tables. - * @member {Object.} tables - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * RowOrganizedTable table. + * @member {factset.protobuf.stach.v3.ITable|null|undefined} table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @instance */ - RowOrganizedPackage.prototype.tables = $util.emptyObject; + RowOrganizedTable.prototype.table = null; /** - * Creates a new RowOrganizedPackage instance using the specified properties. + * RowOrganizedTable multiLevelHeadersTable. + * @member {factset.protobuf.stach.v3.IRowOrganizedTable|null|undefined} multiLevelHeadersTable + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @instance + */ + RowOrganizedTable.prototype.multiLevelHeadersTable = null; + + /** + * RowOrganizedTable views. + * @member {Array.} views + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @instance + */ + RowOrganizedTable.prototype.views = $util.emptyArray; + + /** + * RowOrganizedTable headerRows. + * @member {Array.} headerRows + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @instance + */ + RowOrganizedTable.prototype.headerRows = $util.emptyArray; + + /** + * RowOrganizedTable rows. + * @member {Array.} rows + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @instance + */ + RowOrganizedTable.prototype.rows = $util.emptyArray; + + /** + * Creates a new RowOrganizedTable instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static - * @param {factset.protobuf.stach.v2.IRowOrganizedPackage=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage} RowOrganizedPackage instance + * @param {factset.protobuf.stach.v3.IRowOrganizedTable=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.RowOrganizedTable} RowOrganizedTable instance */ - RowOrganizedPackage.create = function create(properties) { - return new RowOrganizedPackage(properties); + RowOrganizedTable.create = function create(properties) { + return new RowOrganizedTable(properties); }; /** - * Encodes the specified RowOrganizedPackage message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.verify|verify} messages. + * Encodes the specified RowOrganizedTable message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static - * @param {factset.protobuf.stach.v2.IRowOrganizedPackage} message RowOrganizedPackage message or plain object to encode + * @param {factset.protobuf.stach.v3.IRowOrganizedTable} message RowOrganizedTable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowOrganizedPackage.encode = function encode(message, writer) { + RowOrganizedTable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) - for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.factset.protobuf.stach.v3.RowOrganizedTable.Column.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + $root.factset.protobuf.stach.v3.Table.encode(message.table, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.multiLevelHeadersTable != null && Object.hasOwnProperty.call(message, "multiLevelHeadersTable")) + $root.factset.protobuf.stach.v3.RowOrganizedTable.encode(message.multiLevelHeadersTable, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.views != null && message.views.length) + for (var i = 0; i < message.views.length; ++i) + $root.factset.protobuf.stach.v3.Views.View.encode(message.views[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.headerRows != null && message.headerRows.length) + for (var i = 0; i < message.headerRows.length; ++i) + $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.encode(message.headerRows[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.rows != null && message.rows.length) + for (var i = 0; i < message.rows.length; ++i) + $root.google.protobuf.Struct.encode(message.rows[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified RowOrganizedPackage message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.verify|verify} messages. + * Encodes the specified RowOrganizedTable message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static - * @param {factset.protobuf.stach.v2.IRowOrganizedPackage} message RowOrganizedPackage message or plain object to encode + * @param {factset.protobuf.stach.v3.IRowOrganizedTable} message RowOrganizedTable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowOrganizedPackage.encodeDelimited = function encodeDelimited(message, writer) { + RowOrganizedTable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowOrganizedPackage message from the specified reader or buffer. + * Decodes a RowOrganizedTable message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage} RowOrganizedPackage + * @returns {factset.protobuf.stach.v3.RowOrganizedTable} RowOrganizedTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowOrganizedPackage.decode = function decode(reader, length) { + RowOrganizedTable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.RowOrganizedTable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -447,26 +691,33 @@ $root.factset = (function() { message.version = reader.string(); break; case 2: - if (message.tables === $util.emptyObject) - message.tables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tables[key] = value; + message.name = reader.string(); + break; + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.factset.protobuf.stach.v3.RowOrganizedTable.Column.decode(reader, reader.uint32())); + break; + case 4: + message.table = $root.factset.protobuf.stach.v3.Table.decode(reader, reader.uint32()); + break; + case 5: + message.multiLevelHeadersTable = $root.factset.protobuf.stach.v3.RowOrganizedTable.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.views && message.views.length)) + message.views = []; + message.views.push($root.factset.protobuf.stach.v3.Views.View.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.headerRows && message.headerRows.length)) + message.headerRows = []; + message.headerRows.push($root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -477,134 +728,243 @@ $root.factset = (function() { }; /** - * Decodes a RowOrganizedPackage message from the specified reader or buffer, length delimited. + * Decodes a RowOrganizedTable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage} RowOrganizedPackage + * @returns {factset.protobuf.stach.v3.RowOrganizedTable} RowOrganizedTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowOrganizedPackage.decodeDelimited = function decodeDelimited(reader) { + RowOrganizedTable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowOrganizedPackage message. + * Verifies a RowOrganizedTable message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowOrganizedPackage.verify = function verify(message) { + RowOrganizedTable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.version != null && message.hasOwnProperty("version")) if (!$util.isString(message.version)) return "version: string expected"; - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!$util.isObject(message.tables)) - return "tables: object expected"; - var key = Object.keys(message.tables); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table.verify(message.tables[key[i]]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.factset.protobuf.stach.v3.RowOrganizedTable.Column.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.table != null && message.hasOwnProperty("table")) { + var error = $root.factset.protobuf.stach.v3.Table.verify(message.table); + if (error) + return "table." + error; + } + if (message.multiLevelHeadersTable != null && message.hasOwnProperty("multiLevelHeadersTable")) { + var error = $root.factset.protobuf.stach.v3.RowOrganizedTable.verify(message.multiLevelHeadersTable); + if (error) + return "multiLevelHeadersTable." + error; + } + if (message.views != null && message.hasOwnProperty("views")) { + if (!Array.isArray(message.views)) + return "views: array expected"; + for (var i = 0; i < message.views.length; ++i) { + var error = $root.factset.protobuf.stach.v3.Views.View.verify(message.views[i]); + if (error) + return "views." + error; + } + } + if (message.headerRows != null && message.hasOwnProperty("headerRows")) { + if (!Array.isArray(message.headerRows)) + return "headerRows: array expected"; + for (var i = 0; i < message.headerRows.length; ++i) { + var error = $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.verify(message.headerRows[i]); + if (error) + return "headerRows." + error; + } + } + if (message.rows != null && message.hasOwnProperty("rows")) { + if (!Array.isArray(message.rows)) + return "rows: array expected"; + for (var i = 0; i < message.rows.length; ++i) { + var error = $root.google.protobuf.Struct.verify(message.rows[i]); if (error) - return "tables." + error; + return "rows." + error; } } return null; }; /** - * Creates a RowOrganizedPackage message from a plain object. Also converts values to their respective internal types. + * Creates a RowOrganizedTable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage} RowOrganizedPackage + * @returns {factset.protobuf.stach.v3.RowOrganizedTable} RowOrganizedTable */ - RowOrganizedPackage.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage) + RowOrganizedTable.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.RowOrganizedTable) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage(); + var message = new $root.factset.protobuf.stach.v3.RowOrganizedTable(); if (object.version != null) message.version = String(object.version); - if (object.tables) { - if (typeof object.tables !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.tables: object expected"); - message.tables = {}; - for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { - if (typeof object.tables[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.tables: object expected"); - message.tables[keys[i]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table.fromObject(object.tables[keys[i]]); + if (object.name != null) + message.name = String(object.name); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.columns: object expected"); + message.columns[i] = $root.factset.protobuf.stach.v3.RowOrganizedTable.Column.fromObject(object.columns[i]); + } + } + if (object.table != null) { + if (typeof object.table !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.table: object expected"); + message.table = $root.factset.protobuf.stach.v3.Table.fromObject(object.table); + } + if (object.multiLevelHeadersTable != null) { + if (typeof object.multiLevelHeadersTable !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.multiLevelHeadersTable: object expected"); + message.multiLevelHeadersTable = $root.factset.protobuf.stach.v3.RowOrganizedTable.fromObject(object.multiLevelHeadersTable); + } + if (object.views) { + if (!Array.isArray(object.views)) + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.views: array expected"); + message.views = []; + for (var i = 0; i < object.views.length; ++i) { + if (typeof object.views[i] !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.views: object expected"); + message.views[i] = $root.factset.protobuf.stach.v3.Views.View.fromObject(object.views[i]); + } + } + if (object.headerRows) { + if (!Array.isArray(object.headerRows)) + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.headerRows: array expected"); + message.headerRows = []; + for (var i = 0; i < object.headerRows.length; ++i) { + if (typeof object.headerRows[i] !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.headerRows: object expected"); + message.headerRows[i] = $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.fromObject(object.headerRows[i]); + } + } + if (object.rows) { + if (!Array.isArray(object.rows)) + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.rows: array expected"); + message.rows = []; + for (var i = 0; i < object.rows.length; ++i) { + message.rows[i] = $root.google.protobuf.Struct.fromObject(object.rows[i]); } } return message; }; /** - * Creates a plain object from a RowOrganizedPackage message. Also converts values to other types if specified. + * Creates a plain object from a RowOrganizedTable message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage} message RowOrganizedPackage + * @param {factset.protobuf.stach.v3.RowOrganizedTable} message RowOrganizedTable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowOrganizedPackage.toObject = function toObject(message, options) { + RowOrganizedTable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.tables = {}; - if (options.defaults) + if (options.arrays || options.defaults) { + object.columns = []; + object.views = []; + object.headerRows = []; + object.rows = []; + } + if (options.defaults) { object.version = ""; + object.name = ""; + object.table = null; + object.multiLevelHeadersTable = null; + } if (message.version != null && message.hasOwnProperty("version")) object.version = message.version; - var keys2; - if (message.tables && (keys2 = Object.keys(message.tables)).length) { - object.tables = {}; - for (var j = 0; j < keys2.length; ++j) - object.tables[keys2[j]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table.toObject(message.tables[keys2[j]], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.factset.protobuf.stach.v3.RowOrganizedTable.Column.toObject(message.columns[j], options); + } + if (message.table != null && message.hasOwnProperty("table")) + object.table = $root.factset.protobuf.stach.v3.Table.toObject(message.table, options); + if (message.multiLevelHeadersTable != null && message.hasOwnProperty("multiLevelHeadersTable")) + object.multiLevelHeadersTable = $root.factset.protobuf.stach.v3.RowOrganizedTable.toObject(message.multiLevelHeadersTable, options); + if (message.views && message.views.length) { + object.views = []; + for (var j = 0; j < message.views.length; ++j) + object.views[j] = $root.factset.protobuf.stach.v3.Views.View.toObject(message.views[j], options); + } + if (message.headerRows && message.headerRows.length) { + object.headerRows = []; + for (var j = 0; j < message.headerRows.length; ++j) + object.headerRows[j] = $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.toObject(message.headerRows[j], options); + } + if (message.rows && message.rows.length) { + object.rows = []; + for (var j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.google.protobuf.Struct.toObject(message.rows[j], options); } return object; }; /** - * Converts this RowOrganizedPackage to JSON. + * Converts this RowOrganizedTable to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage + * @memberof factset.protobuf.stach.v3.RowOrganizedTable * @instance * @returns {Object.} JSON object */ - RowOrganizedPackage.prototype.toJSON = function toJSON() { + RowOrganizedTable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - RowOrganizedPackage.Table = (function() { + RowOrganizedTable.Column = (function() { /** - * Properties of a Table. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface ITable - * @property {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null} [definition] Table definition - * @property {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null} [headersDefinition] Table headersDefinition - * @property {factset.protobuf.stach.v2.RowOrganizedPackage.ITableData|null} [data] Table data + * Properties of a Column. + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @interface IColumn + * @property {string|null} [name] Column name + * @property {boolean|null} [forbidNulls] Column forbidNulls + * @property {string|null} [contextualType] Column contextualType + * @property {Object.|null} [customMetadata] Column customMetadata */ /** - * Constructs a new Table. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a Table. - * @implements ITable + * Constructs a new Column. + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @classdesc Represents a Column. + * @implements IColumn * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITable=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IColumn=} [properties] Properties to set */ - function Table(properties) { + function Column(properties) { + this.customMetadata = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -612,101 +972,136 @@ $root.factset = (function() { } /** - * Table definition. - * @member {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null|undefined} definition - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * Column name. + * @member {string} name + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column + * @instance + */ + Column.prototype.name = ""; + + /** + * Column forbidNulls. + * @member {boolean} forbidNulls + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @instance */ - Table.prototype.definition = null; + Column.prototype.forbidNulls = false; /** - * Table headersDefinition. - * @member {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition|null|undefined} headersDefinition - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * Column contextualType. + * @member {string} contextualType + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @instance */ - Table.prototype.headersDefinition = null; + Column.prototype.contextualType = ""; /** - * Table data. - * @member {factset.protobuf.stach.v2.RowOrganizedPackage.ITableData|null|undefined} data - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * Column customMetadata. + * @member {Object.} customMetadata + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @instance */ - Table.prototype.data = null; + Column.prototype.customMetadata = $util.emptyObject; /** - * Creates a new Table instance using the specified properties. + * Creates a new Column instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITable=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Table} Table instance + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IColumn=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.Column} Column instance */ - Table.create = function create(properties) { - return new Table(properties); + Column.create = function create(properties) { + return new Column(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Table.verify|verify} messages. + * Encodes the specified Column message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.Column.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITable} message Table message or plain object to encode + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encode = function encode(message, writer) { + Column.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) - $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.encode(message.definition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.headersDefinition != null && Object.hasOwnProperty.call(message, "headersDefinition")) - $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.encode(message.headersDefinition, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.forbidNulls != null && Object.hasOwnProperty.call(message, "forbidNulls")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.forbidNulls); + if (message.contextualType != null && Object.hasOwnProperty.call(message, "contextualType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextualType); + if (message.customMetadata != null && Object.hasOwnProperty.call(message, "customMetadata")) + for (var keys = Object.keys(message.customMetadata), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100, wireType 2 =*/802).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.factset.protobuf.stach.v3.MetadataItem.encode(message.customMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Table.verify|verify} messages. + * Encodes the specified Column message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.Column.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITable} message Table message or plain object to encode + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + Column.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes a Column message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Table} Table + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decode = function decode(reader, length) { + Column.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.RowOrganizedTable.Column(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.definition = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.headersDefinition = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.decode(reader, reader.uint32()); + message.forbidNulls = reader.bool(); break; case 3: - message.data = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.decode(reader, reader.uint32()); + message.contextualType = reader.string(); + break; + case 100: + if (message.customMetadata === $util.emptyObject) + message.customMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.factset.protobuf.stach.v3.MetadataItem.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.customMetadata[key] = value; break; default: reader.skipType(tag & 7); @@ -717,140 +1112,153 @@ $root.factset = (function() { }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a Column message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Table} Table + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decodeDelimited = function decodeDelimited(reader) { + Column.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Table message. + * Verifies a Column message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Table.verify = function verify(message) { + Column.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.definition != null && message.hasOwnProperty("definition")) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.headersDefinition != null && message.hasOwnProperty("headersDefinition")) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.verify(message.headersDefinition); - if (error) - return "headersDefinition." + error; - } - if (message.data != null && message.hasOwnProperty("data")) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.verify(message.data); - if (error) - return "data." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.forbidNulls != null && message.hasOwnProperty("forbidNulls")) + if (typeof message.forbidNulls !== "boolean") + return "forbidNulls: boolean expected"; + if (message.contextualType != null && message.hasOwnProperty("contextualType")) + if (!$util.isString(message.contextualType)) + return "contextualType: string expected"; + if (message.customMetadata != null && message.hasOwnProperty("customMetadata")) { + if (!$util.isObject(message.customMetadata)) + return "customMetadata: object expected"; + var key = Object.keys(message.customMetadata); + for (var i = 0; i < key.length; ++i) { + var error = $root.factset.protobuf.stach.v3.MetadataItem.verify(message.customMetadata[key[i]]); + if (error) + return "customMetadata." + error; + } } return null; }; /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates a Column message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Table} Table + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.Column} Column */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table) + Column.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.RowOrganizedTable.Column) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.Table(); - if (object.definition != null) { - if (typeof object.definition !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Table.definition: object expected"); - message.definition = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.fromObject(object.definition); - } - if (object.headersDefinition != null) { - if (typeof object.headersDefinition !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Table.headersDefinition: object expected"); - message.headersDefinition = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.fromObject(object.headersDefinition); - } - if (object.data != null) { - if (typeof object.data !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Table.data: object expected"); - message.data = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.fromObject(object.data); + var message = new $root.factset.protobuf.stach.v3.RowOrganizedTable.Column(); + if (object.name != null) + message.name = String(object.name); + if (object.forbidNulls != null) + message.forbidNulls = Boolean(object.forbidNulls); + if (object.contextualType != null) + message.contextualType = String(object.contextualType); + if (object.customMetadata) { + if (typeof object.customMetadata !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.Column.customMetadata: object expected"); + message.customMetadata = {}; + for (var keys = Object.keys(object.customMetadata), i = 0; i < keys.length; ++i) { + if (typeof object.customMetadata[keys[i]] !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.Column.customMetadata: object expected"); + message.customMetadata[keys[i]] = $root.factset.protobuf.stach.v3.MetadataItem.fromObject(object.customMetadata[keys[i]]); + } } return message; }; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. + * Creates a plain object from a Column message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.Table} message Table + * @param {factset.protobuf.stach.v3.RowOrganizedTable.Column} message Column * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { + Column.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.customMetadata = {}; if (options.defaults) { - object.definition = null; - object.headersDefinition = null; - object.data = null; + object.name = ""; + object.forbidNulls = false; + object.contextualType = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.forbidNulls != null && message.hasOwnProperty("forbidNulls")) + object.forbidNulls = message.forbidNulls; + if (message.contextualType != null && message.hasOwnProperty("contextualType")) + object.contextualType = message.contextualType; + var keys2; + if (message.customMetadata && (keys2 = Object.keys(message.customMetadata)).length) { + object.customMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.customMetadata[keys2[j]] = $root.factset.protobuf.stach.v3.MetadataItem.toObject(message.customMetadata[keys2[j]], options); } - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.toObject(message.definition, options); - if (message.headersDefinition != null && message.hasOwnProperty("headersDefinition")) - object.headersDefinition = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.toObject(message.headersDefinition, options); - if (message.data != null && message.hasOwnProperty("data")) - object.data = $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.toObject(message.data, options); return object; }; /** - * Converts this Table to JSON. + * Converts this Column to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Table + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.Column * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + Column.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Table; + return Column; })(); - RowOrganizedPackage.TableDefinition = (function() { + RowOrganizedTable.HeaderRow = (function() { /** - * Properties of a TableDefinition. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface ITableDefinition - * @property {Array.|null} [columns] TableDefinition columns + * Properties of a HeaderRow. + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @interface IHeaderRow + * @property {Array.|null} [cells] HeaderRow cells */ /** - * Constructs a new TableDefinition. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a TableDefinition. - * @implements ITableDefinition + * Constructs a new HeaderRow. + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @classdesc Represents a HeaderRow. + * @implements IHeaderRow * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow=} [properties] Properties to set */ - function TableDefinition(properties) { - this.columns = []; + function HeaderRow(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -858,78 +1266,78 @@ $root.factset = (function() { } /** - * TableDefinition columns. - * @member {Array.} columns - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * HeaderRow cells. + * @member {Array.} cells + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @instance */ - TableDefinition.prototype.columns = $util.emptyArray; + HeaderRow.prototype.cells = $util.emptyArray; /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new HeaderRow instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} TableDefinition instance + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} HeaderRow instance */ - TableDefinition.create = function create(properties) { - return new TableDefinition(properties); + HeaderRow.create = function create(properties) { + return new HeaderRow(properties); }; /** - * Encodes the specified TableDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.verify|verify} messages. + * Encodes the specified HeaderRow message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition} message TableDefinition message or plain object to encode + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow} message HeaderRow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableDefinition.encode = function encode(message, writer) { + HeaderRow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.factset.protobuf.stach.v2.table.ColumnDefinition.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.encode(message.cells[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.verify|verify} messages. + * Encodes the specified HeaderRow message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableDefinition} message TableDefinition message or plain object to encode + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderRow} message HeaderRow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableDefinition.encodeDelimited = function encodeDelimited(message, writer) { + HeaderRow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a HeaderRow message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} TableDefinition + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} HeaderRow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableDefinition.decode = function decode(reader, length) { + HeaderRow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.factset.protobuf.stach.v2.table.ColumnDefinition.decode(reader, reader.uint32())); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push($root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -940,129 +1348,126 @@ $root.factset = (function() { }; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a HeaderRow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} TableDefinition + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} HeaderRow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableDefinition.decodeDelimited = function decodeDelimited(reader) { + HeaderRow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableDefinition message. + * Verifies a HeaderRow message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableDefinition.verify = function verify(message) { + HeaderRow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.ColumnDefinition.verify(message.columns[i]); + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) { + var error = $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.verify(message.cells[i]); if (error) - return "columns." + error; + return "cells." + error; } } return null; }; /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a HeaderRow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} TableDefinition + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} HeaderRow */ - TableDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition) + HeaderRow.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition(); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition.columns: object expected"); - message.columns[i] = $root.factset.protobuf.stach.v2.table.ColumnDefinition.fromObject(object.columns[i]); + var message = new $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow(); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) { + if (typeof object.cells[i] !== "object") + throw TypeError(".factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow.cells: object expected"); + message.cells[i] = $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.fromObject(object.cells[i]); } } return message; }; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. + * Creates a plain object from a HeaderRow message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition} message TableDefinition + * @param {factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow} message HeaderRow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableDefinition.toObject = function toObject(message, options) { + HeaderRow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.columns = []; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.factset.protobuf.stach.v2.table.ColumnDefinition.toObject(message.columns[j], options); + object.cells = []; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.toObject(message.cells[j], options); } return object; }; /** - * Converts this TableDefinition to JSON. + * Converts this HeaderRow to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderRow * @instance * @returns {Object.} JSON object */ - TableDefinition.prototype.toJSON = function toJSON() { + HeaderRow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableDefinition; + return HeaderRow; })(); - RowOrganizedPackage.TableData = (function() { + RowOrganizedTable.HeaderCell = (function() { /** - * Properties of a TableData. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface ITableData - * @property {Array.|null} [rows] TableData rows - * @property {Object.|null} [tableMetadata] TableData tableMetadata - * @property {Object.|null} [columnMetadata] TableData columnMetadata + * Properties of a HeaderCell. + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @interface IHeaderCell + * @property {number|null} [colspan] HeaderCell colspan + * @property {number|null} [rowspan] HeaderCell rowspan + * @property {google.protobuf.IValue|null} [value] HeaderCell value */ /** - * Constructs a new TableData. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a TableData. - * @implements ITableData + * Constructs a new HeaderCell. + * @memberof factset.protobuf.stach.v3.RowOrganizedTable + * @classdesc Represents a HeaderCell. + * @implements IHeaderCell * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableData=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell=} [properties] Properties to set */ - function TableData(properties) { - this.rows = []; - this.tableMetadata = {}; - this.columnMetadata = {}; + function HeaderCell(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1070,148 +1475,101 @@ $root.factset = (function() { } /** - * TableData rows. - * @member {Array.} rows - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * HeaderCell colspan. + * @member {number} colspan + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @instance */ - TableData.prototype.rows = $util.emptyArray; + HeaderCell.prototype.colspan = 0; /** - * TableData tableMetadata. - * @member {Object.} tableMetadata - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * HeaderCell rowspan. + * @member {number} rowspan + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @instance */ - TableData.prototype.tableMetadata = $util.emptyObject; + HeaderCell.prototype.rowspan = 0; /** - * TableData columnMetadata. - * @member {Object.} columnMetadata - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * HeaderCell value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @instance */ - TableData.prototype.columnMetadata = $util.emptyObject; + HeaderCell.prototype.value = null; /** - * Creates a new TableData instance using the specified properties. + * Creates a new HeaderCell instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableData=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableData} TableData instance + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} HeaderCell instance */ - TableData.create = function create(properties) { - return new TableData(properties); + HeaderCell.create = function create(properties) { + return new HeaderCell(properties); }; /** - * Encodes the specified TableData message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableData.verify|verify} messages. + * Encodes the specified HeaderCell message. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableData} message TableData message or plain object to encode + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell} message HeaderCell message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableData.encode = function encode(message, writer) { + HeaderCell.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows != null && message.rows.length) - for (var i = 0; i < message.rows.length; ++i) - $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row.encode(message.rows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tableMetadata != null && Object.hasOwnProperty.call(message, "tableMetadata")) - for (var keys = Object.keys(message.tableMetadata), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataItem.encode(message.tableMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.columnMetadata != null && Object.hasOwnProperty.call(message, "columnMetadata")) - for (var keys = Object.keys(message.columnMetadata), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.encode(message.columnMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.colspan != null && Object.hasOwnProperty.call(message, "colspan")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.colspan); + if (message.rowspan != null && Object.hasOwnProperty.call(message, "rowspan")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.rowspan); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TableData message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.TableData.verify|verify} messages. + * Encodes the specified HeaderCell message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ITableData} message TableData message or plain object to encode + * @param {factset.protobuf.stach.v3.RowOrganizedTable.IHeaderCell} message HeaderCell message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableData.encodeDelimited = function encodeDelimited(message, writer) { + HeaderCell.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableData message from the specified reader or buffer. + * Decodes a HeaderCell message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableData} TableData + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} HeaderCell * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableData.decode = function decode(reader, length) { + HeaderCell.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.factset.protobuf.stach.v2.RowOrganizedPackage.Row.decode(reader, reader.uint32())); + message.colspan = reader.uint32(); break; case 2: - if (message.tableMetadata === $util.emptyObject) - message.tableMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tableMetadata[key] = value; + message.rowspan = reader.uint32(); break; case 3: - if (message.columnMetadata === $util.emptyObject) - message.columnMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.columnMetadata[key] = value; + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1222,422 +1580,609 @@ $root.factset = (function() { }; /** - * Decodes a TableData message from the specified reader or buffer, length delimited. + * Decodes a HeaderCell message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableData} TableData + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} HeaderCell * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableData.decodeDelimited = function decodeDelimited(reader) { + HeaderCell.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableData message. + * Verifies a HeaderCell message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableData.verify = function verify(message) { + HeaderCell.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (var i = 0; i < message.rows.length; ++i) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row.verify(message.rows[i]); - if (error) - return "rows." + error; - } - } - if (message.tableMetadata != null && message.hasOwnProperty("tableMetadata")) { - if (!$util.isObject(message.tableMetadata)) - return "tableMetadata: object expected"; - var key = Object.keys(message.tableMetadata); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataItem.verify(message.tableMetadata[key[i]]); - if (error) - return "tableMetadata." + error; - } - } - if (message.columnMetadata != null && message.hasOwnProperty("columnMetadata")) { - if (!$util.isObject(message.columnMetadata)) - return "columnMetadata: object expected"; - var key = Object.keys(message.columnMetadata); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.verify(message.columnMetadata[key[i]]); - if (error) - return "columnMetadata." + error; - } + if (message.colspan != null && message.hasOwnProperty("colspan")) + if (!$util.isInteger(message.colspan)) + return "colspan: integer expected"; + if (message.rowspan != null && message.hasOwnProperty("rowspan")) + if (!$util.isInteger(message.rowspan)) + return "rowspan: integer expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; } return null; }; /** - * Creates a TableData message from a plain object. Also converts values to their respective internal types. + * Creates a HeaderCell message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.TableData} TableData + * @returns {factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} HeaderCell */ - TableData.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData) + HeaderCell.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.TableData(); - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableData.rows: array expected"); - message.rows = []; - for (var i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableData.rows: object expected"); - message.rows[i] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row.fromObject(object.rows[i]); - } - } - if (object.tableMetadata) { - if (typeof object.tableMetadata !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableData.tableMetadata: object expected"); - message.tableMetadata = {}; - for (var keys = Object.keys(object.tableMetadata), i = 0; i < keys.length; ++i) { - if (typeof object.tableMetadata[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableData.tableMetadata: object expected"); - message.tableMetadata[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataItem.fromObject(object.tableMetadata[keys[i]]); - } - } - if (object.columnMetadata) { - if (typeof object.columnMetadata !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableData.columnMetadata: object expected"); - message.columnMetadata = {}; - for (var keys = Object.keys(object.columnMetadata), i = 0; i < keys.length; ++i) { - if (typeof object.columnMetadata[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.TableData.columnMetadata: object expected"); - message.columnMetadata[keys[i]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.fromObject(object.columnMetadata[keys[i]]); - } + var message = new $root.factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell(); + if (object.colspan != null) + message.colspan = object.colspan >>> 0; + if (object.rowspan != null) + message.rowspan = object.rowspan >>> 0; + if (object.value != null) { + message.value = $root.google.protobuf.Value.fromObject(object.value); } return message; }; /** - * Creates a plain object from a TableData message. Also converts values to other types if specified. + * Creates a plain object from a HeaderCell message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.TableData} message TableData + * @param {factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell} message HeaderCell * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableData.toObject = function toObject(message, options) { + HeaderCell.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rows = []; - if (options.objects || options.defaults) { - object.tableMetadata = {}; - object.columnMetadata = {}; - } - if (message.rows && message.rows.length) { - object.rows = []; - for (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row.toObject(message.rows[j], options); - } - var keys2; - if (message.tableMetadata && (keys2 = Object.keys(message.tableMetadata)).length) { - object.tableMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.tableMetadata[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataItem.toObject(message.tableMetadata[keys2[j]], options); - } - if (message.columnMetadata && (keys2 = Object.keys(message.columnMetadata)).length) { - object.columnMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.columnMetadata[keys2[j]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.toObject(message.columnMetadata[keys2[j]], options); + if (options.defaults) { + object.colspan = 0; + object.rowspan = 0; + object.value = null; } + if (message.colspan != null && message.hasOwnProperty("colspan")) + object.colspan = message.colspan; + if (message.rowspan != null && message.hasOwnProperty("rowspan")) + object.rowspan = message.rowspan; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); return object; }; /** - * Converts this TableData to JSON. + * Converts this HeaderCell to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.TableData + * @memberof factset.protobuf.stach.v3.RowOrganizedTable.HeaderCell * @instance * @returns {Object.} JSON object */ - TableData.prototype.toJSON = function toJSON() { + HeaderCell.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableData; + return HeaderCell; })(); - RowOrganizedPackage.Row = (function() { - - /** - * Properties of a Row. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface IRow - * @property {string|null} [id] Row id - * @property {factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType|null} [rowType] Row rowType - * @property {google.protobuf.IListValue|null} [cells] Row cells - * @property {google.protobuf.IStruct|null} [values] Row values - * @property {Object.|null} [cellDetails] Row cellDetails - * @property {Object.|null} [headerCellDetails] Row headerCellDetails - * @property {Object.|null} [rowMetadata] Row rowMetadata - */ + return RowOrganizedTable; + })(); - /** - * Constructs a new Row. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a Row. - * @implements IRow - * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IRow=} [properties] Properties to set - */ - function Row(properties) { - this.cellDetails = {}; - this.headerCellDetails = {}; - this.rowMetadata = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.Table = (function() { - /** - * Row id. - * @member {string} id - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.id = ""; + /** + * Properties of a Table. + * @memberof factset.protobuf.stach.v3 + * @interface ITable + * @property {Array.|null} [primaryKeys] Table primaryKeys + * @property {number|null} [totalNumRows] Table totalNumRows + * @property {factset.protobuf.stach.v3.Table.IGroupResult|null} [groupResult] Table groupResult + * @property {factset.protobuf.stach.v3.Table.ISplitResult|null} [splitResult] Table splitResult + * @property {Object.|null} [customMetadata] Table customMetadata + */ - /** - * Row rowType. - * @member {factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType} rowType - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.rowType = 0; + /** + * Constructs a new Table. + * @memberof factset.protobuf.stach.v3 + * @classdesc Represents a Table. + * @implements ITable + * @constructor + * @param {factset.protobuf.stach.v3.ITable=} [properties] Properties to set + */ + function Table(properties) { + this.primaryKeys = []; + this.customMetadata = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Row cells. - * @member {google.protobuf.IListValue|null|undefined} cells - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.cells = null; + /** + * Table primaryKeys. + * @member {Array.} primaryKeys + * @memberof factset.protobuf.stach.v3.Table + * @instance + */ + Table.prototype.primaryKeys = $util.emptyArray; - /** - * Row values. - * @member {google.protobuf.IStruct|null|undefined} values - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.values = null; + /** + * Table totalNumRows. + * @member {number} totalNumRows + * @memberof factset.protobuf.stach.v3.Table + * @instance + */ + Table.prototype.totalNumRows = 0; - /** - * Row cellDetails. - * @member {Object.} cellDetails - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.cellDetails = $util.emptyObject; + /** + * Table groupResult. + * @member {factset.protobuf.stach.v3.Table.IGroupResult|null|undefined} groupResult + * @memberof factset.protobuf.stach.v3.Table + * @instance + */ + Table.prototype.groupResult = null; - /** - * Row headerCellDetails. - * @member {Object.} headerCellDetails - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.headerCellDetails = $util.emptyObject; + /** + * Table splitResult. + * @member {factset.protobuf.stach.v3.Table.ISplitResult|null|undefined} splitResult + * @memberof factset.protobuf.stach.v3.Table + * @instance + */ + Table.prototype.splitResult = null; - /** - * Row rowMetadata. - * @member {Object.} rowMetadata - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Row.prototype.rowMetadata = $util.emptyObject; + /** + * Table customMetadata. + * @member {Object.} customMetadata + * @memberof factset.protobuf.stach.v3.Table + * @instance + */ + Table.prototype.customMetadata = $util.emptyObject; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a new Table instance using the specified properties. + * @function create + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {factset.protobuf.stach.v3.ITable=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Table} Table instance + */ + Table.create = function create(properties) { + return new Table(properties); + }; - /** - * Row kind. - * @member {"cells"|"values"|undefined} kind - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @instance - */ - Object.defineProperty(Row.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["cells", "values"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified Table message. Does not implicitly {@link factset.protobuf.stach.v3.Table.verify|verify} messages. + * @function encode + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {factset.protobuf.stach.v3.ITable} message Table message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Table.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primaryKeys != null && message.primaryKeys.length) + for (var i = 0; i < message.primaryKeys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.primaryKeys[i]); + if (message.totalNumRows != null && Object.hasOwnProperty.call(message, "totalNumRows")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalNumRows); + if (message.groupResult != null && Object.hasOwnProperty.call(message, "groupResult")) + $root.factset.protobuf.stach.v3.Table.GroupResult.encode(message.groupResult, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.splitResult != null && Object.hasOwnProperty.call(message, "splitResult")) + $root.factset.protobuf.stach.v3.Table.SplitResult.encode(message.splitResult, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.customMetadata != null && Object.hasOwnProperty.call(message, "customMetadata")) + for (var keys = Object.keys(message.customMetadata), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100, wireType 2 =*/802).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.factset.protobuf.stach.v3.MetadataItem.encode(message.customMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; - /** - * Creates a new Row instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IRow=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Row} Row instance - */ - Row.create = function create(properties) { - return new Row(properties); - }; + /** + * Encodes the specified Table message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.verify|verify} messages. + * @function encodeDelimited + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {factset.protobuf.stach.v3.ITable} message Table message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Table.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Row message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Row.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IRow} message Row message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Row.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.rowType != null && Object.hasOwnProperty.call(message, "rowType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.rowType); - if (message.cells != null && Object.hasOwnProperty.call(message, "cells")) - $root.google.protobuf.ListValue.encode(message.cells, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.values != null && Object.hasOwnProperty.call(message, "values")) - $root.google.protobuf.Struct.encode(message.values, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.cellDetails != null && Object.hasOwnProperty.call(message, "cellDetails")) - for (var keys = Object.keys(message.cellDetails), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.encode(message.cellDetails[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.headerCellDetails != null && Object.hasOwnProperty.call(message, "headerCellDetails")) - for (var keys = Object.keys(message.headerCellDetails), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.encode(message.headerCellDetails[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.rowMetadata != null && Object.hasOwnProperty.call(message, "rowMetadata")) - for (var keys = Object.keys(message.rowMetadata), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataItem.encode(message.rowMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + /** + * Decodes a Table message from the specified reader or buffer. + * @function decode + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {factset.protobuf.stach.v3.Table} Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Table.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Table(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.primaryKeys && message.primaryKeys.length)) + message.primaryKeys = []; + message.primaryKeys.push(reader.string()); + break; + case 2: + message.totalNumRows = reader.int32(); + break; + case 3: + message.groupResult = $root.factset.protobuf.stach.v3.Table.GroupResult.decode(reader, reader.uint32()); + break; + case 4: + message.splitResult = $root.factset.protobuf.stach.v3.Table.SplitResult.decode(reader, reader.uint32()); + break; + case 100: + if (message.customMetadata === $util.emptyObject) + message.customMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.factset.protobuf.stach.v3.MetadataItem.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } - return writer; - }; - - /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.Row.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IRow} message Row message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Row.encodeDelimited = function encodeDelimited(message, writer) { + message.customMetadata[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Table message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {factset.protobuf.stach.v3.Table} Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Table.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Table message. + * @function verify + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Table.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.primaryKeys != null && message.hasOwnProperty("primaryKeys")) { + if (!Array.isArray(message.primaryKeys)) + return "primaryKeys: array expected"; + for (var i = 0; i < message.primaryKeys.length; ++i) + if (!$util.isString(message.primaryKeys[i])) + return "primaryKeys: string[] expected"; + } + if (message.totalNumRows != null && message.hasOwnProperty("totalNumRows")) + if (!$util.isInteger(message.totalNumRows)) + return "totalNumRows: integer expected"; + if (message.groupResult != null && message.hasOwnProperty("groupResult")) { + var error = $root.factset.protobuf.stach.v3.Table.GroupResult.verify(message.groupResult); + if (error) + return "groupResult." + error; + } + if (message.splitResult != null && message.hasOwnProperty("splitResult")) { + var error = $root.factset.protobuf.stach.v3.Table.SplitResult.verify(message.splitResult); + if (error) + return "splitResult." + error; + } + if (message.customMetadata != null && message.hasOwnProperty("customMetadata")) { + if (!$util.isObject(message.customMetadata)) + return "customMetadata: object expected"; + var key = Object.keys(message.customMetadata); + for (var i = 0; i < key.length; ++i) { + var error = $root.factset.protobuf.stach.v3.MetadataItem.verify(message.customMetadata[key[i]]); + if (error) + return "customMetadata." + error; + } + } + return null; + }; + + /** + * Creates a Table message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {Object.} object Plain object + * @returns {factset.protobuf.stach.v3.Table} Table + */ + Table.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Table) + return object; + var message = new $root.factset.protobuf.stach.v3.Table(); + if (object.primaryKeys) { + if (!Array.isArray(object.primaryKeys)) + throw TypeError(".factset.protobuf.stach.v3.Table.primaryKeys: array expected"); + message.primaryKeys = []; + for (var i = 0; i < object.primaryKeys.length; ++i) + message.primaryKeys[i] = String(object.primaryKeys[i]); + } + if (object.totalNumRows != null) + message.totalNumRows = object.totalNumRows | 0; + if (object.groupResult != null) { + if (typeof object.groupResult !== "object") + throw TypeError(".factset.protobuf.stach.v3.Table.groupResult: object expected"); + message.groupResult = $root.factset.protobuf.stach.v3.Table.GroupResult.fromObject(object.groupResult); + } + if (object.splitResult != null) { + if (typeof object.splitResult !== "object") + throw TypeError(".factset.protobuf.stach.v3.Table.splitResult: object expected"); + message.splitResult = $root.factset.protobuf.stach.v3.Table.SplitResult.fromObject(object.splitResult); + } + if (object.customMetadata) { + if (typeof object.customMetadata !== "object") + throw TypeError(".factset.protobuf.stach.v3.Table.customMetadata: object expected"); + message.customMetadata = {}; + for (var keys = Object.keys(object.customMetadata), i = 0; i < keys.length; ++i) { + if (typeof object.customMetadata[keys[i]] !== "object") + throw TypeError(".factset.protobuf.stach.v3.Table.customMetadata: object expected"); + message.customMetadata[keys[i]] = $root.factset.protobuf.stach.v3.MetadataItem.fromObject(object.customMetadata[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @function toObject + * @memberof factset.protobuf.stach.v3.Table + * @static + * @param {factset.protobuf.stach.v3.Table} message Table + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Table.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.primaryKeys = []; + if (options.objects || options.defaults) + object.customMetadata = {}; + if (options.defaults) { + object.totalNumRows = 0; + object.groupResult = null; + object.splitResult = null; + } + if (message.primaryKeys && message.primaryKeys.length) { + object.primaryKeys = []; + for (var j = 0; j < message.primaryKeys.length; ++j) + object.primaryKeys[j] = message.primaryKeys[j]; + } + if (message.totalNumRows != null && message.hasOwnProperty("totalNumRows")) + object.totalNumRows = message.totalNumRows; + if (message.groupResult != null && message.hasOwnProperty("groupResult")) + object.groupResult = $root.factset.protobuf.stach.v3.Table.GroupResult.toObject(message.groupResult, options); + if (message.splitResult != null && message.hasOwnProperty("splitResult")) + object.splitResult = $root.factset.protobuf.stach.v3.Table.SplitResult.toObject(message.splitResult, options); + var keys2; + if (message.customMetadata && (keys2 = Object.keys(message.customMetadata)).length) { + object.customMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.customMetadata[keys2[j]] = $root.factset.protobuf.stach.v3.MetadataItem.toObject(message.customMetadata[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Table to JSON. + * @function toJSON + * @memberof factset.protobuf.stach.v3.Table + * @instance + * @returns {Object.} JSON object + */ + Table.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Table.GroupResult = (function() { + + /** + * Properties of a GroupResult. + * @memberof factset.protobuf.stach.v3.Table + * @interface IGroupResult + * @property {Array.|null} [by] GroupResult by + * @property {factset.protobuf.stach.v3.Table.ICollapsedColumnResult|null} [collapsedColumnResult] GroupResult collapsedColumnResult + * @property {string|null} [rowPath] GroupResult rowPath + * @property {string|null} [aggregateRows] GroupResult aggregateRows + * @property {string|null} [level] GroupResult level + */ + + /** + * Constructs a new GroupResult. + * @memberof factset.protobuf.stach.v3.Table + * @classdesc Represents a GroupResult. + * @implements IGroupResult + * @constructor + * @param {factset.protobuf.stach.v3.Table.IGroupResult=} [properties] Properties to set + */ + function GroupResult(properties) { + this.by = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GroupResult by. + * @member {Array.} by + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @instance + */ + GroupResult.prototype.by = $util.emptyArray; + + /** + * GroupResult collapsedColumnResult. + * @member {factset.protobuf.stach.v3.Table.ICollapsedColumnResult|null|undefined} collapsedColumnResult + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @instance + */ + GroupResult.prototype.collapsedColumnResult = null; + + /** + * GroupResult rowPath. + * @member {string} rowPath + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @instance + */ + GroupResult.prototype.rowPath = ""; + + /** + * GroupResult aggregateRows. + * @member {string} aggregateRows + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @instance + */ + GroupResult.prototype.aggregateRows = ""; + + /** + * GroupResult level. + * @member {string} level + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @instance + */ + GroupResult.prototype.level = ""; + + /** + * Creates a new GroupResult instance using the specified properties. + * @function create + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @static + * @param {factset.protobuf.stach.v3.Table.IGroupResult=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Table.GroupResult} GroupResult instance + */ + GroupResult.create = function create(properties) { + return new GroupResult(properties); + }; + + /** + * Encodes the specified GroupResult message. Does not implicitly {@link factset.protobuf.stach.v3.Table.GroupResult.verify|verify} messages. + * @function encode + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @static + * @param {factset.protobuf.stach.v3.Table.IGroupResult} message GroupResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroupResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.by != null && message.by.length) + for (var i = 0; i < message.by.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.by[i]); + if (message.collapsedColumnResult != null && Object.hasOwnProperty.call(message, "collapsedColumnResult")) + $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult.encode(message.collapsedColumnResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rowPath != null && Object.hasOwnProperty.call(message, "rowPath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.rowPath); + if (message.aggregateRows != null && Object.hasOwnProperty.call(message, "aggregateRows")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.aggregateRows); + if (message.level != null && Object.hasOwnProperty.call(message, "level")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.level); + return writer; + }; + + /** + * Encodes the specified GroupResult message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.GroupResult.verify|verify} messages. + * @function encodeDelimited + * @memberof factset.protobuf.stach.v3.Table.GroupResult + * @static + * @param {factset.protobuf.stach.v3.Table.IGroupResult} message GroupResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroupResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes a GroupResult message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row + * @memberof factset.protobuf.stach.v3.Table.GroupResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Row} Row + * @returns {factset.protobuf.stach.v3.Table.GroupResult} GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decode = function decode(reader, length) { + GroupResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Table.GroupResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + if (!(message.by && message.by.length)) + message.by = []; + message.by.push(reader.string()); break; case 2: - message.rowType = reader.int32(); + message.collapsedColumnResult = $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult.decode(reader, reader.uint32()); break; case 3: - message.cells = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + message.rowPath = reader.string(); break; case 4: - message.values = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.aggregateRows = reader.string(); break; case 5: - if (message.cellDetails === $util.emptyObject) - message.cellDetails = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.cellDetails[key] = value; - break; - case 6: - if (message.headerCellDetails === $util.emptyObject) - message.headerCellDetails = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.headerCellDetails[key] = value; - break; - case 7: - if (message.rowMetadata === $util.emptyObject) - message.rowMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rowMetadata[key] = value; + message.level = reader.string(); break; default: reader.skipType(tag & 7); @@ -1648,262 +2193,158 @@ $root.factset = (function() { }; /** - * Decodes a Row message from the specified reader or buffer, length delimited. + * Decodes a GroupResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row + * @memberof factset.protobuf.stach.v3.Table.GroupResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Row} Row + * @returns {factset.protobuf.stach.v3.Table.GroupResult} GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decodeDelimited = function decodeDelimited(reader) { + GroupResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Row message. + * Verifies a GroupResult message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row + * @memberof factset.protobuf.stach.v3.Table.GroupResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Row.verify = function verify(message) { + GroupResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.rowType != null && message.hasOwnProperty("rowType")) - switch (message.rowType) { - default: - return "rowType: enum value expected"; - case 0: - case 1: - break; - } - if (message.cells != null && message.hasOwnProperty("cells")) { - properties.kind = 1; - { - var error = $root.google.protobuf.ListValue.verify(message.cells); - if (error) - return "cells." + error; - } - } - if (message.values != null && message.hasOwnProperty("values")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.Struct.verify(message.values); - if (error) - return "values." + error; - } - } - if (message.cellDetails != null && message.hasOwnProperty("cellDetails")) { - if (!$util.isObject(message.cellDetails)) - return "cellDetails: object expected"; - var key = Object.keys(message.cellDetails); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.verify(message.cellDetails[key[i]]); - if (error) - return "cellDetails." + error; - } - } - if (message.headerCellDetails != null && message.hasOwnProperty("headerCellDetails")) { - if (!$util.isObject(message.headerCellDetails)) - return "headerCellDetails: object expected"; - var key = Object.keys(message.headerCellDetails); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.verify(message.headerCellDetails[key[i]]); - if (error) - return "headerCellDetails." + error; - } - } - if (message.rowMetadata != null && message.hasOwnProperty("rowMetadata")) { - if (!$util.isObject(message.rowMetadata)) - return "rowMetadata: object expected"; - var key = Object.keys(message.rowMetadata); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataItem.verify(message.rowMetadata[key[i]]); - if (error) - return "rowMetadata." + error; - } - } + if (message.by != null && message.hasOwnProperty("by")) { + if (!Array.isArray(message.by)) + return "by: array expected"; + for (var i = 0; i < message.by.length; ++i) + if (!$util.isString(message.by[i])) + return "by: string[] expected"; + } + if (message.collapsedColumnResult != null && message.hasOwnProperty("collapsedColumnResult")) { + var error = $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult.verify(message.collapsedColumnResult); + if (error) + return "collapsedColumnResult." + error; + } + if (message.rowPath != null && message.hasOwnProperty("rowPath")) + if (!$util.isString(message.rowPath)) + return "rowPath: string expected"; + if (message.aggregateRows != null && message.hasOwnProperty("aggregateRows")) + if (!$util.isString(message.aggregateRows)) + return "aggregateRows: string expected"; + if (message.level != null && message.hasOwnProperty("level")) + if (!$util.isString(message.level)) + return "level: string expected"; return null; }; /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. + * Creates a GroupResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row + * @memberof factset.protobuf.stach.v3.Table.GroupResult * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.Row} Row + * @returns {factset.protobuf.stach.v3.Table.GroupResult} GroupResult */ - Row.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row) + GroupResult.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Table.GroupResult) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row(); - if (object.id != null) - message.id = String(object.id); - switch (object.rowType) { - case "Body": - case 0: - message.rowType = 0; - break; - case "Header": - case 1: - message.rowType = 1; - break; - } - if (object.cells != null) { - message.cells = $root.google.protobuf.ListValue.fromObject(object.cells); - } - if (object.values != null) { - message.values = $root.google.protobuf.Struct.fromObject(object.values); - } - if (object.cellDetails) { - if (typeof object.cellDetails !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Row.cellDetails: object expected"); - message.cellDetails = {}; - for (var keys = Object.keys(object.cellDetails), i = 0; i < keys.length; ++i) { - if (typeof object.cellDetails[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Row.cellDetails: object expected"); - message.cellDetails[keys[i]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.fromObject(object.cellDetails[keys[i]]); - } - } - if (object.headerCellDetails) { - if (typeof object.headerCellDetails !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Row.headerCellDetails: object expected"); - message.headerCellDetails = {}; - for (var keys = Object.keys(object.headerCellDetails), i = 0; i < keys.length; ++i) { - if (typeof object.headerCellDetails[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Row.headerCellDetails: object expected"); - message.headerCellDetails[keys[i]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.fromObject(object.headerCellDetails[keys[i]]); - } - } - if (object.rowMetadata) { - if (typeof object.rowMetadata !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Row.rowMetadata: object expected"); - message.rowMetadata = {}; - for (var keys = Object.keys(object.rowMetadata), i = 0; i < keys.length; ++i) { - if (typeof object.rowMetadata[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.Row.rowMetadata: object expected"); - message.rowMetadata[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataItem.fromObject(object.rowMetadata[keys[i]]); - } - } + var message = new $root.factset.protobuf.stach.v3.Table.GroupResult(); + if (object.by) { + if (!Array.isArray(object.by)) + throw TypeError(".factset.protobuf.stach.v3.Table.GroupResult.by: array expected"); + message.by = []; + for (var i = 0; i < object.by.length; ++i) + message.by[i] = String(object.by[i]); + } + if (object.collapsedColumnResult != null) { + if (typeof object.collapsedColumnResult !== "object") + throw TypeError(".factset.protobuf.stach.v3.Table.GroupResult.collapsedColumnResult: object expected"); + message.collapsedColumnResult = $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult.fromObject(object.collapsedColumnResult); + } + if (object.rowPath != null) + message.rowPath = String(object.rowPath); + if (object.aggregateRows != null) + message.aggregateRows = String(object.aggregateRows); + if (object.level != null) + message.level = String(object.level); return message; }; /** - * Creates a plain object from a Row message. Also converts values to other types if specified. + * Creates a plain object from a GroupResult message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row + * @memberof factset.protobuf.stach.v3.Table.GroupResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.Row} message Row + * @param {factset.protobuf.stach.v3.Table.GroupResult} message GroupResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Row.toObject = function toObject(message, options) { + GroupResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.cellDetails = {}; - object.headerCellDetails = {}; - object.rowMetadata = {}; - } + if (options.arrays || options.defaults) + object.by = []; if (options.defaults) { - object.id = ""; - object.rowType = options.enums === String ? "Body" : 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.rowType != null && message.hasOwnProperty("rowType")) - object.rowType = options.enums === String ? $root.factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType[message.rowType] : message.rowType; - if (message.cells != null && message.hasOwnProperty("cells")) { - object.cells = $root.google.protobuf.ListValue.toObject(message.cells, options); - if (options.oneofs) - object.kind = "cells"; - } - if (message.values != null && message.hasOwnProperty("values")) { - object.values = $root.google.protobuf.Struct.toObject(message.values, options); - if (options.oneofs) - object.kind = "values"; - } - var keys2; - if (message.cellDetails && (keys2 = Object.keys(message.cellDetails)).length) { - object.cellDetails = {}; - for (var j = 0; j < keys2.length; ++j) - object.cellDetails[keys2[j]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.toObject(message.cellDetails[keys2[j]], options); - } - if (message.headerCellDetails && (keys2 = Object.keys(message.headerCellDetails)).length) { - object.headerCellDetails = {}; - for (var j = 0; j < keys2.length; ++j) - object.headerCellDetails[keys2[j]] = $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.toObject(message.headerCellDetails[keys2[j]], options); - } - if (message.rowMetadata && (keys2 = Object.keys(message.rowMetadata)).length) { - object.rowMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.rowMetadata[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataItem.toObject(message.rowMetadata[keys2[j]], options); - } + object.collapsedColumnResult = null; + object.rowPath = ""; + object.aggregateRows = ""; + object.level = ""; + } + if (message.by && message.by.length) { + object.by = []; + for (var j = 0; j < message.by.length; ++j) + object.by[j] = message.by[j]; + } + if (message.collapsedColumnResult != null && message.hasOwnProperty("collapsedColumnResult")) + object.collapsedColumnResult = $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult.toObject(message.collapsedColumnResult, options); + if (message.rowPath != null && message.hasOwnProperty("rowPath")) + object.rowPath = message.rowPath; + if (message.aggregateRows != null && message.hasOwnProperty("aggregateRows")) + object.aggregateRows = message.aggregateRows; + if (message.level != null && message.hasOwnProperty("level")) + object.level = message.level; return object; }; /** - * Converts this Row to JSON. + * Converts this GroupResult to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.Row + * @memberof factset.protobuf.stach.v3.Table.GroupResult * @instance * @returns {Object.} JSON object */ - Row.prototype.toJSON = function toJSON() { + GroupResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * RowType enum. - * @name factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType - * @enum {number} - * @property {number} Body=0 Body value - * @property {number} Header=1 Header value - */ - Row.RowType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Body"] = 0; - values[valuesById[1] = "Header"] = 1; - return values; - })(); - - return Row; + return GroupResult; })(); - RowOrganizedPackage.CellDetail = (function() { + Table.CollapsedColumnResult = (function() { /** - * Properties of a CellDetail. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface ICellDetail - * @property {number|null} [groupLevel] CellDetail groupLevel - * @property {factset.protobuf.stach.v2.table.ICellDefinition|null} [cellDefinition] CellDetail cellDefinition - * @property {Object.|null} [cellMetadata] CellDetail cellMetadata + * Properties of a CollapsedColumnResult. + * @memberof factset.protobuf.stach.v3.Table + * @interface ICollapsedColumnResult + * @property {string|null} [name] CollapsedColumnResult name */ /** - * Constructs a new CellDetail. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a CellDetail. - * @implements ICellDetail + * Constructs a new CollapsedColumnResult. + * @memberof factset.protobuf.stach.v3.Table + * @classdesc Represents a CollapsedColumnResult. + * @implements ICollapsedColumnResult * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.Table.ICollapsedColumnResult=} [properties] Properties to set */ - function CellDetail(properties) { - this.cellMetadata = {}; + function CollapsedColumnResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1911,123 +2352,75 @@ $root.factset = (function() { } /** - * CellDetail groupLevel. - * @member {number} groupLevel - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail - * @instance - */ - CellDetail.prototype.groupLevel = 0; - - /** - * CellDetail cellDefinition. - * @member {factset.protobuf.stach.v2.table.ICellDefinition|null|undefined} cellDefinition - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail - * @instance - */ - CellDetail.prototype.cellDefinition = null; - - /** - * CellDetail cellMetadata. - * @member {Object.} cellMetadata - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * CollapsedColumnResult name. + * @member {string} name + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @instance */ - CellDetail.prototype.cellMetadata = $util.emptyObject; + CollapsedColumnResult.prototype.name = ""; /** - * Creates a new CellDetail instance using the specified properties. + * Creates a new CollapsedColumnResult instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} CellDetail instance + * @param {factset.protobuf.stach.v3.Table.ICollapsedColumnResult=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Table.CollapsedColumnResult} CollapsedColumnResult instance */ - CellDetail.create = function create(properties) { - return new CellDetail(properties); + CollapsedColumnResult.create = function create(properties) { + return new CollapsedColumnResult(properties); }; /** - * Encodes the specified CellDetail message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.verify|verify} messages. + * Encodes the specified CollapsedColumnResult message. Does not implicitly {@link factset.protobuf.stach.v3.Table.CollapsedColumnResult.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail} message CellDetail message or plain object to encode + * @param {factset.protobuf.stach.v3.Table.ICollapsedColumnResult} message CollapsedColumnResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CellDetail.encode = function encode(message, writer) { + CollapsedColumnResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.groupLevel != null && Object.hasOwnProperty.call(message, "groupLevel")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.groupLevel); - if (message.cellDefinition != null && Object.hasOwnProperty.call(message, "cellDefinition")) - $root.factset.protobuf.stach.v2.table.CellDefinition.encode(message.cellDefinition, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.cellMetadata != null && Object.hasOwnProperty.call(message, "cellMetadata")) - for (var keys = Object.keys(message.cellMetadata), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataItem.encode(message.cellMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CellDetail message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.verify|verify} messages. + * Encodes the specified CollapsedColumnResult message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.CollapsedColumnResult.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.ICellDetail} message CellDetail message or plain object to encode + * @param {factset.protobuf.stach.v3.Table.ICollapsedColumnResult} message CollapsedColumnResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CellDetail.encodeDelimited = function encodeDelimited(message, writer) { + CollapsedColumnResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CellDetail message from the specified reader or buffer. + * Decodes a CollapsedColumnResult message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} CellDetail + * @returns {factset.protobuf.stach.v3.Table.CollapsedColumnResult} CollapsedColumnResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CellDetail.decode = function decode(reader, length) { + CollapsedColumnResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.groupLevel = reader.int32(); - break; - case 2: - message.cellDefinition = $root.factset.protobuf.stach.v2.table.CellDefinition.decode(reader, reader.uint32()); - break; - case 3: - if (message.cellMetadata === $util.emptyObject) - message.cellMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.cellMetadata[key] = value; + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -2038,155 +2431,107 @@ $root.factset = (function() { }; /** - * Decodes a CellDetail message from the specified reader or buffer, length delimited. + * Decodes a CollapsedColumnResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} CellDetail + * @returns {factset.protobuf.stach.v3.Table.CollapsedColumnResult} CollapsedColumnResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CellDetail.decodeDelimited = function decodeDelimited(reader) { + CollapsedColumnResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CellDetail message. + * Verifies a CollapsedColumnResult message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CellDetail.verify = function verify(message) { + CollapsedColumnResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.groupLevel != null && message.hasOwnProperty("groupLevel")) - if (!$util.isInteger(message.groupLevel)) - return "groupLevel: integer expected"; - if (message.cellDefinition != null && message.hasOwnProperty("cellDefinition")) { - var error = $root.factset.protobuf.stach.v2.table.CellDefinition.verify(message.cellDefinition); - if (error) - return "cellDefinition." + error; - } - if (message.cellMetadata != null && message.hasOwnProperty("cellMetadata")) { - if (!$util.isObject(message.cellMetadata)) - return "cellMetadata: object expected"; - var key = Object.keys(message.cellMetadata); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataItem.verify(message.cellMetadata[key[i]]); - if (error) - return "cellMetadata." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CellDetail message from a plain object. Also converts values to their respective internal types. + * Creates a CollapsedColumnResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} CellDetail + * @returns {factset.protobuf.stach.v3.Table.CollapsedColumnResult} CollapsedColumnResult */ - CellDetail.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail) + CollapsedColumnResult.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail(); - if (object.groupLevel != null) - message.groupLevel = object.groupLevel | 0; - if (object.cellDefinition != null) { - if (typeof object.cellDefinition !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.cellDefinition: object expected"); - message.cellDefinition = $root.factset.protobuf.stach.v2.table.CellDefinition.fromObject(object.cellDefinition); - } - if (object.cellMetadata) { - if (typeof object.cellMetadata !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.cellMetadata: object expected"); - message.cellMetadata = {}; - for (var keys = Object.keys(object.cellMetadata), i = 0; i < keys.length; ++i) { - if (typeof object.cellMetadata[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.cellMetadata: object expected"); - message.cellMetadata[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataItem.fromObject(object.cellMetadata[keys[i]]); - } - } + var message = new $root.factset.protobuf.stach.v3.Table.CollapsedColumnResult(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CellDetail message. Also converts values to other types if specified. + * Creates a plain object from a CollapsedColumnResult message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail} message CellDetail + * @param {factset.protobuf.stach.v3.Table.CollapsedColumnResult} message CollapsedColumnResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CellDetail.toObject = function toObject(message, options) { + CollapsedColumnResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.cellMetadata = {}; - if (options.defaults) { - object.groupLevel = 0; - object.cellDefinition = null; - } - if (message.groupLevel != null && message.hasOwnProperty("groupLevel")) - object.groupLevel = message.groupLevel; - if (message.cellDefinition != null && message.hasOwnProperty("cellDefinition")) - object.cellDefinition = $root.factset.protobuf.stach.v2.table.CellDefinition.toObject(message.cellDefinition, options); - var keys2; - if (message.cellMetadata && (keys2 = Object.keys(message.cellMetadata)).length) { - object.cellMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.cellMetadata[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataItem.toObject(message.cellMetadata[keys2[j]], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CellDetail to JSON. + * Converts this CollapsedColumnResult to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail + * @memberof factset.protobuf.stach.v3.Table.CollapsedColumnResult * @instance * @returns {Object.} JSON object */ - CellDetail.prototype.toJSON = function toJSON() { + CollapsedColumnResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CellDetail; + return CollapsedColumnResult; })(); - RowOrganizedPackage.HeaderCellDetail = (function() { + Table.SplitResult = (function() { /** - * Properties of a HeaderCellDetail. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface IHeaderCellDetail - * @property {number|null} [colspan] HeaderCellDetail colspan - * @property {number|null} [rowspan] HeaderCellDetail rowspan - * @property {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource|null} [source] HeaderCellDetail source - * @property {number|null} [columnIndex] HeaderCellDetail columnIndex - * @property {factset.protobuf.stach.v2.table.ICellDefinition|null} [cellDefinition] HeaderCellDetail cellDefinition - * @property {Object.|null} [cellMetadata] HeaderCellDetail cellMetadata + * Properties of a SplitResult. + * @memberof factset.protobuf.stach.v3.Table + * @interface ISplitResult + * @property {string|null} [multiLevelHeadersTableReference] SplitResult multiLevelHeadersTableReference */ /** - * Constructs a new HeaderCellDetail. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a HeaderCellDetail. - * @implements IHeaderCellDetail + * Constructs a new SplitResult. + * @memberof factset.protobuf.stach.v3.Table + * @classdesc Represents a SplitResult. + * @implements ISplitResult * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.Table.ISplitResult=} [properties] Properties to set */ - function HeaderCellDetail(properties) { - this.cellMetadata = {}; + function SplitResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2194,162 +2539,75 @@ $root.factset = (function() { } /** - * HeaderCellDetail colspan. - * @member {number} colspan - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - * @instance - */ - HeaderCellDetail.prototype.colspan = 0; - - /** - * HeaderCellDetail rowspan. - * @member {number} rowspan - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - * @instance - */ - HeaderCellDetail.prototype.rowspan = 0; - - /** - * HeaderCellDetail source. - * @member {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource} source - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - * @instance - */ - HeaderCellDetail.prototype.source = 0; - - /** - * HeaderCellDetail columnIndex. - * @member {number} columnIndex - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - * @instance - */ - HeaderCellDetail.prototype.columnIndex = 0; - - /** - * HeaderCellDetail cellDefinition. - * @member {factset.protobuf.stach.v2.table.ICellDefinition|null|undefined} cellDefinition - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail - * @instance - */ - HeaderCellDetail.prototype.cellDefinition = null; - - /** - * HeaderCellDetail cellMetadata. - * @member {Object.} cellMetadata - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * SplitResult multiLevelHeadersTableReference. + * @member {string} multiLevelHeadersTableReference + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @instance */ - HeaderCellDetail.prototype.cellMetadata = $util.emptyObject; + SplitResult.prototype.multiLevelHeadersTableReference = ""; /** - * Creates a new HeaderCellDetail instance using the specified properties. + * Creates a new SplitResult instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} HeaderCellDetail instance + * @param {factset.protobuf.stach.v3.Table.ISplitResult=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Table.SplitResult} SplitResult instance */ - HeaderCellDetail.create = function create(properties) { - return new HeaderCellDetail(properties); + SplitResult.create = function create(properties) { + return new SplitResult(properties); }; /** - * Encodes the specified HeaderCellDetail message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.verify|verify} messages. + * Encodes the specified SplitResult message. Does not implicitly {@link factset.protobuf.stach.v3.Table.SplitResult.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail} message HeaderCellDetail message or plain object to encode + * @param {factset.protobuf.stach.v3.Table.ISplitResult} message SplitResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderCellDetail.encode = function encode(message, writer) { + SplitResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.colspan != null && Object.hasOwnProperty.call(message, "colspan")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.colspan); - if (message.rowspan != null && Object.hasOwnProperty.call(message, "rowspan")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.rowspan); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.source); - if (message.columnIndex != null && Object.hasOwnProperty.call(message, "columnIndex")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.columnIndex); - if (message.cellDefinition != null && Object.hasOwnProperty.call(message, "cellDefinition")) - $root.factset.protobuf.stach.v2.table.CellDefinition.encode(message.cellDefinition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.cellMetadata != null && Object.hasOwnProperty.call(message, "cellMetadata")) - for (var keys = Object.keys(message.cellMetadata), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataItem.encode(message.cellMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.multiLevelHeadersTableReference != null && Object.hasOwnProperty.call(message, "multiLevelHeadersTableReference")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.multiLevelHeadersTableReference); return writer; }; /** - * Encodes the specified HeaderCellDetail message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.verify|verify} messages. + * Encodes the specified SplitResult message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Table.SplitResult.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IHeaderCellDetail} message HeaderCellDetail message or plain object to encode + * @param {factset.protobuf.stach.v3.Table.ISplitResult} message SplitResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderCellDetail.encodeDelimited = function encodeDelimited(message, writer) { + SplitResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HeaderCellDetail message from the specified reader or buffer. + * Decodes a SplitResult message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} HeaderCellDetail + * @returns {factset.protobuf.stach.v3.Table.SplitResult} SplitResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderCellDetail.decode = function decode(reader, length) { + SplitResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Table.SplitResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.colspan = reader.int32(); - break; - case 2: - message.rowspan = reader.int32(); - break; - case 3: - message.source = reader.int32(); - break; - case 4: - message.columnIndex = reader.int32(); - break; - case 5: - message.cellDefinition = $root.factset.protobuf.stach.v2.table.CellDefinition.decode(reader, reader.uint32()); - break; - case 6: - if (message.cellMetadata === $util.emptyObject) - message.cellMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.cellMetadata[key] = value; + message.multiLevelHeadersTableReference = reader.string(); break; default: reader.skipType(tag & 7); @@ -2360,3498 +2618,512 @@ $root.factset = (function() { }; /** - * Decodes a HeaderCellDetail message from the specified reader or buffer, length delimited. + * Decodes a SplitResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} HeaderCellDetail + * @returns {factset.protobuf.stach.v3.Table.SplitResult} SplitResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderCellDetail.decodeDelimited = function decodeDelimited(reader) { + SplitResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HeaderCellDetail message. + * Verifies a SplitResult message. * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HeaderCellDetail.verify = function verify(message) { + SplitResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.colspan != null && message.hasOwnProperty("colspan")) - if (!$util.isInteger(message.colspan)) - return "colspan: integer expected"; - if (message.rowspan != null && message.hasOwnProperty("rowspan")) - if (!$util.isInteger(message.rowspan)) - return "rowspan: integer expected"; - if (message.source != null && message.hasOwnProperty("source")) - switch (message.source) { - default: - return "source: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.columnIndex != null && message.hasOwnProperty("columnIndex")) - if (!$util.isInteger(message.columnIndex)) - return "columnIndex: integer expected"; - if (message.cellDefinition != null && message.hasOwnProperty("cellDefinition")) { - var error = $root.factset.protobuf.stach.v2.table.CellDefinition.verify(message.cellDefinition); - if (error) - return "cellDefinition." + error; - } - if (message.cellMetadata != null && message.hasOwnProperty("cellMetadata")) { - if (!$util.isObject(message.cellMetadata)) - return "cellMetadata: object expected"; - var key = Object.keys(message.cellMetadata); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataItem.verify(message.cellMetadata[key[i]]); - if (error) - return "cellMetadata." + error; - } - } + if (message.multiLevelHeadersTableReference != null && message.hasOwnProperty("multiLevelHeadersTableReference")) + if (!$util.isString(message.multiLevelHeadersTableReference)) + return "multiLevelHeadersTableReference: string expected"; return null; }; /** - * Creates a HeaderCellDetail message from a plain object. Also converts values to their respective internal types. + * Creates a SplitResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} HeaderCellDetail + * @returns {factset.protobuf.stach.v3.Table.SplitResult} SplitResult */ - HeaderCellDetail.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail) + SplitResult.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Table.SplitResult) return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail(); - if (object.colspan != null) - message.colspan = object.colspan | 0; - if (object.rowspan != null) - message.rowspan = object.rowspan | 0; - switch (object.source) { - case "UNKNOWN": - case 0: - message.source = 0; - break; - case "NONE": - case 1: - message.source = 1; - break; - case "PRIMARY": - case 2: - message.source = 2; - break; - case "HEADERS": - case 3: - message.source = 3; - break; - } - if (object.columnIndex != null) - message.columnIndex = object.columnIndex | 0; - if (object.cellDefinition != null) { - if (typeof object.cellDefinition !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.cellDefinition: object expected"); - message.cellDefinition = $root.factset.protobuf.stach.v2.table.CellDefinition.fromObject(object.cellDefinition); - } - if (object.cellMetadata) { - if (typeof object.cellMetadata !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.cellMetadata: object expected"); - message.cellMetadata = {}; - for (var keys = Object.keys(object.cellMetadata), i = 0; i < keys.length; ++i) { - if (typeof object.cellMetadata[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.cellMetadata: object expected"); - message.cellMetadata[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataItem.fromObject(object.cellMetadata[keys[i]]); - } - } + var message = new $root.factset.protobuf.stach.v3.Table.SplitResult(); + if (object.multiLevelHeadersTableReference != null) + message.multiLevelHeadersTableReference = String(object.multiLevelHeadersTableReference); return message; }; /** - * Creates a plain object from a HeaderCellDetail message. Also converts values to other types if specified. + * Creates a plain object from a SplitResult message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail} message HeaderCellDetail + * @param {factset.protobuf.stach.v3.Table.SplitResult} message SplitResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HeaderCellDetail.toObject = function toObject(message, options) { + SplitResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.cellMetadata = {}; - if (options.defaults) { - object.colspan = 0; - object.rowspan = 0; - object.source = options.enums === String ? "UNKNOWN" : 0; - object.columnIndex = 0; - object.cellDefinition = null; - } - if (message.colspan != null && message.hasOwnProperty("colspan")) - object.colspan = message.colspan; - if (message.rowspan != null && message.hasOwnProperty("rowspan")) - object.rowspan = message.rowspan; - if (message.source != null && message.hasOwnProperty("source")) - object.source = options.enums === String ? $root.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource[message.source] : message.source; - if (message.columnIndex != null && message.hasOwnProperty("columnIndex")) - object.columnIndex = message.columnIndex; - if (message.cellDefinition != null && message.hasOwnProperty("cellDefinition")) - object.cellDefinition = $root.factset.protobuf.stach.v2.table.CellDefinition.toObject(message.cellDefinition, options); - var keys2; - if (message.cellMetadata && (keys2 = Object.keys(message.cellMetadata)).length) { - object.cellMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.cellMetadata[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataItem.toObject(message.cellMetadata[keys2[j]], options); - } + if (options.defaults) + object.multiLevelHeadersTableReference = ""; + if (message.multiLevelHeadersTableReference != null && message.hasOwnProperty("multiLevelHeadersTableReference")) + object.multiLevelHeadersTableReference = message.multiLevelHeadersTableReference; return object; }; /** - * Converts this HeaderCellDetail to JSON. + * Converts this SplitResult to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail + * @memberof factset.protobuf.stach.v3.Table.SplitResult * @instance * @returns {Object.} JSON object */ - HeaderCellDetail.prototype.toJSON = function toJSON() { + SplitResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * TableSource enum. - * @name factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} NONE=1 NONE value - * @property {number} PRIMARY=2 PRIMARY value - * @property {number} HEADERS=3 HEADERS value - */ - HeaderCellDetail.TableSource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "NONE"] = 1; - values[valuesById[2] = "PRIMARY"] = 2; - values[valuesById[3] = "HEADERS"] = 3; - return values; - })(); - - return HeaderCellDetail; + return SplitResult; })(); - RowOrganizedPackage.MapOfMetadata = (function() { + return Table; + })(); - /** - * Properties of a MapOfMetadata. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @interface IMapOfMetadata - * @property {Object.|null} [items] MapOfMetadata items - */ + v3.TableView = (function() { - /** - * Constructs a new MapOfMetadata. - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage - * @classdesc Represents a MapOfMetadata. - * @implements IMapOfMetadata - * @constructor - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata=} [properties] Properties to set - */ - function MapOfMetadata(properties) { - this.items = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a TableView. + * @memberof factset.protobuf.stach.v3 + * @interface ITableView + * @property {string|null} [displayName] TableView displayName + * @property {Array.|null} [columns] TableView columns + * @property {Object.|null} [headers] TableView headers + * @property {factset.protobuf.stach.v3.TableView.IGroup|null} [group] TableView group + * @property {factset.protobuf.stach.v3.TableView.ISplit|null} [split] TableView split + * @property {Object.|null} [customMetadata] TableView customMetadata + */ - /** - * MapOfMetadata items. - * @member {Object.} items - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @instance - */ - MapOfMetadata.prototype.items = $util.emptyObject; + /** + * Constructs a new TableView. + * @memberof factset.protobuf.stach.v3 + * @classdesc Represents a TableView. + * @implements ITableView + * @constructor + * @param {factset.protobuf.stach.v3.ITableView=} [properties] Properties to set + */ + function TableView(properties) { + this.columns = []; + this.headers = {}; + this.customMetadata = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new MapOfMetadata instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} MapOfMetadata instance - */ - MapOfMetadata.create = function create(properties) { - return new MapOfMetadata(properties); - }; + /** + * TableView displayName. + * @member {string} displayName + * @memberof factset.protobuf.stach.v3.TableView + * @instance + */ + TableView.prototype.displayName = ""; - /** - * Encodes the specified MapOfMetadata message. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata} message MapOfMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MapOfMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.items != null && Object.hasOwnProperty.call(message, "items")) - for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataItem.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * TableView columns. + * @member {Array.} columns + * @memberof factset.protobuf.stach.v3.TableView + * @instance + */ + TableView.prototype.columns = $util.emptyArray; - /** - * Encodes the specified MapOfMetadata message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.IMapOfMetadata} message MapOfMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MapOfMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * TableView headers. + * @member {Object.} headers + * @memberof factset.protobuf.stach.v3.TableView + * @instance + */ + TableView.prototype.headers = $util.emptyObject; - /** - * Decodes a MapOfMetadata message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} MapOfMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MapOfMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (message.items === $util.emptyObject) - message.items = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.items[key] = value; - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * TableView group. + * @member {factset.protobuf.stach.v3.TableView.IGroup|null|undefined} group + * @memberof factset.protobuf.stach.v3.TableView + * @instance + */ + TableView.prototype.group = null; - /** - * Decodes a MapOfMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} MapOfMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MapOfMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MapOfMetadata message. - * @function verify - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MapOfMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.items != null && message.hasOwnProperty("items")) { - if (!$util.isObject(message.items)) - return "items: object expected"; - var key = Object.keys(message.items); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataItem.verify(message.items[key[i]]); - if (error) - return "items." + error; - } - } - return null; - }; - - /** - * Creates a MapOfMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} MapOfMetadata - */ - MapOfMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata) - return object; - var message = new $root.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata(); - if (object.items) { - if (typeof object.items !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.items: object expected"); - message.items = {}; - for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { - if (typeof object.items[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.items: object expected"); - message.items[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataItem.fromObject(object.items[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a MapOfMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @static - * @param {factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata} message MapOfMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MapOfMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.items = {}; - var keys2; - if (message.items && (keys2 = Object.keys(message.items)).length) { - object.items = {}; - for (var j = 0; j < keys2.length; ++j) - object.items[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataItem.toObject(message.items[keys2[j]], options); - } - return object; - }; - - /** - * Converts this MapOfMetadata to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata - * @instance - * @returns {Object.} JSON object - */ - MapOfMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MapOfMetadata; - })(); - - return RowOrganizedPackage; - })(); - - v2.table = (function() { + /** + * TableView split. + * @member {factset.protobuf.stach.v3.TableView.ISplit|null|undefined} split + * @memberof factset.protobuf.stach.v3.TableView + * @instance + */ + TableView.prototype.split = null; /** - * Namespace table. - * @memberof factset.protobuf.stach.v2 - * @namespace + * TableView customMetadata. + * @member {Object.} customMetadata + * @memberof factset.protobuf.stach.v3.TableView + * @instance */ - var table = {}; - - table.CellDefinition = (function() { - - /** - * Properties of a CellDefinition. - * @memberof factset.protobuf.stach.v2.table - * @interface ICellDefinition - * @property {string|null} [type] CellDefinition type - * @property {factset.protobuf.stach.v2.table.IDataFormat|null} [format] CellDefinition format - */ - - /** - * Constructs a new CellDefinition. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a CellDefinition. - * @implements ICellDefinition - * @constructor - * @param {factset.protobuf.stach.v2.table.ICellDefinition=} [properties] Properties to set - */ - function CellDefinition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CellDefinition type. - * @member {string} type - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @instance - */ - CellDefinition.prototype.type = ""; - - /** - * CellDefinition format. - * @member {factset.protobuf.stach.v2.table.IDataFormat|null|undefined} format - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @instance - */ - CellDefinition.prototype.format = null; - - /** - * Creates a new CellDefinition instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {factset.protobuf.stach.v2.table.ICellDefinition=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.CellDefinition} CellDefinition instance - */ - CellDefinition.create = function create(properties) { - return new CellDefinition(properties); - }; - - /** - * Encodes the specified CellDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.CellDefinition.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {factset.protobuf.stach.v2.table.ICellDefinition} message CellDefinition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellDefinition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - $root.factset.protobuf.stach.v2.table.DataFormat.encode(message.format, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CellDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.CellDefinition.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {factset.protobuf.stach.v2.table.ICellDefinition} message CellDefinition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellDefinition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CellDefinition message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.CellDefinition} CellDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellDefinition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.CellDefinition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.format = $root.factset.protobuf.stach.v2.table.DataFormat.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CellDefinition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.CellDefinition} CellDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellDefinition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CellDefinition message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CellDefinition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.format != null && message.hasOwnProperty("format")) { - var error = $root.factset.protobuf.stach.v2.table.DataFormat.verify(message.format); - if (error) - return "format." + error; - } - return null; - }; + TableView.prototype.customMetadata = $util.emptyObject; - /** - * Creates a CellDefinition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.CellDefinition} CellDefinition - */ - CellDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.CellDefinition) - return object; - var message = new $root.factset.protobuf.stach.v2.table.CellDefinition(); - if (object.type != null) - message.type = String(object.type); - if (object.format != null) { - if (typeof object.format !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.CellDefinition.format: object expected"); - message.format = $root.factset.protobuf.stach.v2.table.DataFormat.fromObject(object.format); - } - return message; - }; + /** + * Creates a new TableView instance using the specified properties. + * @function create + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {factset.protobuf.stach.v3.ITableView=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.TableView} TableView instance + */ + TableView.create = function create(properties) { + return new TableView(properties); + }; - /** - * Creates a plain object from a CellDefinition message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @static - * @param {factset.protobuf.stach.v2.table.CellDefinition} message CellDefinition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CellDefinition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - object.format = null; + /** + * Encodes the specified TableView message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.verify|verify} messages. + * @function encode + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {factset.protobuf.stach.v3.ITableView} message TableView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableView.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.columns[i]); + if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) + for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); + if (message.group != null && Object.hasOwnProperty.call(message, "group")) + $root.factset.protobuf.stach.v3.TableView.Group.encode(message.group, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.split != null && Object.hasOwnProperty.call(message, "split")) + $root.factset.protobuf.stach.v3.TableView.Split.encode(message.split, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.customMetadata != null && Object.hasOwnProperty.call(message, "customMetadata")) + for (var keys = Object.keys(message.customMetadata), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100, wireType 2 =*/802).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.factset.protobuf.stach.v3.MetadataItem.encode(message.customMetadata[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.format != null && message.hasOwnProperty("format")) - object.format = $root.factset.protobuf.stach.v2.table.DataFormat.toObject(message.format, options); - return object; - }; - - /** - * Converts this CellDefinition to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.CellDefinition - * @instance - * @returns {Object.} JSON object - */ - CellDefinition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CellDefinition; - })(); - - table.ColumnData = (function() { - - /** - * Properties of a ColumnData. - * @memberof factset.protobuf.stach.v2.table - * @interface IColumnData - * @property {Object.|null} [ranges] ColumnData ranges - * @property {google.protobuf.IListValue|null} [values] ColumnData values - * @property {Array.|null} [definitions] ColumnData definitions - */ - - /** - * Constructs a new ColumnData. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a ColumnData. - * @implements IColumnData - * @constructor - * @param {factset.protobuf.stach.v2.table.IColumnData=} [properties] Properties to set - */ - function ColumnData(properties) { - this.ranges = {}; - this.definitions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ColumnData ranges. - * @member {Object.} ranges - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @instance - */ - ColumnData.prototype.ranges = $util.emptyObject; - - /** - * ColumnData values. - * @member {google.protobuf.IListValue|null|undefined} values - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @instance - */ - ColumnData.prototype.values = null; - - /** - * ColumnData definitions. - * @member {Array.} definitions - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @instance - */ - ColumnData.prototype.definitions = $util.emptyArray; - - /** - * Creates a new ColumnData instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {factset.protobuf.stach.v2.table.IColumnData=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.ColumnData} ColumnData instance - */ - ColumnData.create = function create(properties) { - return new ColumnData(properties); - }; - - /** - * Encodes the specified ColumnData message. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnData.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {factset.protobuf.stach.v2.table.IColumnData} message ColumnData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ranges != null && Object.hasOwnProperty.call(message, "ranges")) - for (var keys = Object.keys(message.ranges), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 0 =*/8).int32(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.ranges[keys[i]]).ldelim(); - if (message.values != null && Object.hasOwnProperty.call(message, "values")) - $root.google.protobuf.ListValue.encode(message.values, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.definitions != null && message.definitions.length) - for (var i = 0; i < message.definitions.length; ++i) - $root.factset.protobuf.stach.v2.table.CellDefinition.encode(message.definitions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ColumnData message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnData.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {factset.protobuf.stach.v2.table.IColumnData} message ColumnData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return writer; + }; - /** - * Decodes a ColumnData message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.ColumnData} ColumnData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.ColumnData(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (message.ranges === $util.emptyObject) - message.ranges = {}; - var end2 = reader.uint32() + reader.pos; - key = 0; - value = 0; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.int32(); - break; - case 2: - value = reader.int32(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.ranges[key] = value; - break; - case 2: - message.values = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.definitions && message.definitions.length)) - message.definitions = []; - message.definitions.push($root.factset.protobuf.stach.v2.table.CellDefinition.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ColumnData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.ColumnData} ColumnData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ColumnData message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ColumnData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ranges != null && message.hasOwnProperty("ranges")) { - if (!$util.isObject(message.ranges)) - return "ranges: object expected"; - var key = Object.keys(message.ranges); - for (var i = 0; i < key.length; ++i) { - if (!$util.key32Re.test(key[i])) - return "ranges: integer key{k:int32} expected"; - if (!$util.isInteger(message.ranges[key[i]])) - return "ranges: integer{k:int32} expected"; - } - } - if (message.values != null && message.hasOwnProperty("values")) { - var error = $root.google.protobuf.ListValue.verify(message.values); - if (error) - return "values." + error; - } - if (message.definitions != null && message.hasOwnProperty("definitions")) { - if (!Array.isArray(message.definitions)) - return "definitions: array expected"; - for (var i = 0; i < message.definitions.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.CellDefinition.verify(message.definitions[i]); - if (error) - return "definitions." + error; - } - } - return null; - }; - - /** - * Creates a ColumnData message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.ColumnData} ColumnData - */ - ColumnData.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.ColumnData) - return object; - var message = new $root.factset.protobuf.stach.v2.table.ColumnData(); - if (object.ranges) { - if (typeof object.ranges !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.ColumnData.ranges: object expected"); - message.ranges = {}; - for (var keys = Object.keys(object.ranges), i = 0; i < keys.length; ++i) - message.ranges[keys[i]] = object.ranges[keys[i]] | 0; - } - if (object.values != null) { - message.values = $root.google.protobuf.ListValue.fromObject(object.values); - } - if (object.definitions) { - if (!Array.isArray(object.definitions)) - throw TypeError(".factset.protobuf.stach.v2.table.ColumnData.definitions: array expected"); - message.definitions = []; - for (var i = 0; i < object.definitions.length; ++i) { - if (typeof object.definitions[i] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.ColumnData.definitions: object expected"); - message.definitions[i] = $root.factset.protobuf.stach.v2.table.CellDefinition.fromObject(object.definitions[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ColumnData message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @static - * @param {factset.protobuf.stach.v2.table.ColumnData} message ColumnData - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ColumnData.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.definitions = []; - if (options.objects || options.defaults) - object.ranges = {}; - if (options.defaults) - object.values = null; - var keys2; - if (message.ranges && (keys2 = Object.keys(message.ranges)).length) { - object.ranges = {}; - for (var j = 0; j < keys2.length; ++j) - object.ranges[keys2[j]] = message.ranges[keys2[j]]; - } - if (message.values != null && message.hasOwnProperty("values")) - object.values = $root.google.protobuf.ListValue.toObject(message.values, options); - if (message.definitions && message.definitions.length) { - object.definitions = []; - for (var j = 0; j < message.definitions.length; ++j) - object.definitions[j] = $root.factset.protobuf.stach.v2.table.CellDefinition.toObject(message.definitions[j], options); - } - return object; - }; - - /** - * Converts this ColumnData to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.ColumnData - * @instance - * @returns {Object.} JSON object - */ - ColumnData.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ColumnData; - })(); - - table.ColumnDefinition = (function() { - - /** - * Properties of a ColumnDefinition. - * @memberof factset.protobuf.stach.v2.table - * @interface IColumnDefinition - * @property {string|null} [id] ColumnDefinition id - * @property {string|null} [name] ColumnDefinition name - * @property {string|null} [description] ColumnDefinition description - * @property {string|null} [type] ColumnDefinition type - * @property {boolean|null} [isDimension] ColumnDefinition isDimension - * @property {boolean|null} [isHidden] ColumnDefinition isHidden - * @property {string|null} [nextSiblingId] ColumnDefinition nextSiblingId - * @property {string|null} [parentId] ColumnDefinition parentId - * @property {string|null} [headerId] ColumnDefinition headerId - * @property {factset.protobuf.stach.v2.table.IDataFormat|null} [format] ColumnDefinition format - */ - - /** - * Constructs a new ColumnDefinition. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a ColumnDefinition. - * @implements IColumnDefinition - * @constructor - * @param {factset.protobuf.stach.v2.table.IColumnDefinition=} [properties] Properties to set - */ - function ColumnDefinition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ColumnDefinition id. - * @member {string} id - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.id = ""; - - /** - * ColumnDefinition name. - * @member {string} name - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.name = ""; - - /** - * ColumnDefinition description. - * @member {string} description - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.description = ""; - - /** - * ColumnDefinition type. - * @member {string} type - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.type = ""; - - /** - * ColumnDefinition isDimension. - * @member {boolean} isDimension - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.isDimension = false; - - /** - * ColumnDefinition isHidden. - * @member {boolean} isHidden - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.isHidden = false; - - /** - * ColumnDefinition nextSiblingId. - * @member {string} nextSiblingId - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.nextSiblingId = ""; - - /** - * ColumnDefinition parentId. - * @member {string} parentId - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.parentId = ""; - - /** - * ColumnDefinition headerId. - * @member {string} headerId - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.headerId = ""; - - /** - * ColumnDefinition format. - * @member {factset.protobuf.stach.v2.table.IDataFormat|null|undefined} format - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - */ - ColumnDefinition.prototype.format = null; - - /** - * Creates a new ColumnDefinition instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {factset.protobuf.stach.v2.table.IColumnDefinition=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.ColumnDefinition} ColumnDefinition instance - */ - ColumnDefinition.create = function create(properties) { - return new ColumnDefinition(properties); - }; - - /** - * Encodes the specified ColumnDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnDefinition.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {factset.protobuf.stach.v2.table.IColumnDefinition} message ColumnDefinition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnDefinition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.type); - if (message.isDimension != null && Object.hasOwnProperty.call(message, "isDimension")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isDimension); - if (message.isHidden != null && Object.hasOwnProperty.call(message, "isHidden")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isHidden); - if (message.nextSiblingId != null && Object.hasOwnProperty.call(message, "nextSiblingId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.nextSiblingId); - if (message.parentId != null && Object.hasOwnProperty.call(message, "parentId")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.parentId); - if (message.headerId != null && Object.hasOwnProperty.call(message, "headerId")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.headerId); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - $root.factset.protobuf.stach.v2.table.DataFormat.encode(message.format, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ColumnDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.ColumnDefinition.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {factset.protobuf.stach.v2.table.IColumnDefinition} message ColumnDefinition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnDefinition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ColumnDefinition message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.ColumnDefinition} ColumnDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnDefinition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.ColumnDefinition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.type = reader.string(); - break; - case 5: - message.isDimension = reader.bool(); - break; - case 6: - message.isHidden = reader.bool(); - break; - case 7: - message.nextSiblingId = reader.string(); - break; - case 8: - message.parentId = reader.string(); - break; - case 9: - message.headerId = reader.string(); - break; - case 10: - message.format = $root.factset.protobuf.stach.v2.table.DataFormat.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ColumnDefinition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.ColumnDefinition} ColumnDefinition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnDefinition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ColumnDefinition message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ColumnDefinition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.isDimension != null && message.hasOwnProperty("isDimension")) - if (typeof message.isDimension !== "boolean") - return "isDimension: boolean expected"; - if (message.isHidden != null && message.hasOwnProperty("isHidden")) - if (typeof message.isHidden !== "boolean") - return "isHidden: boolean expected"; - if (message.nextSiblingId != null && message.hasOwnProperty("nextSiblingId")) - if (!$util.isString(message.nextSiblingId)) - return "nextSiblingId: string expected"; - if (message.parentId != null && message.hasOwnProperty("parentId")) - if (!$util.isString(message.parentId)) - return "parentId: string expected"; - if (message.headerId != null && message.hasOwnProperty("headerId")) - if (!$util.isString(message.headerId)) - return "headerId: string expected"; - if (message.format != null && message.hasOwnProperty("format")) { - var error = $root.factset.protobuf.stach.v2.table.DataFormat.verify(message.format); - if (error) - return "format." + error; - } - return null; - }; - - /** - * Creates a ColumnDefinition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.ColumnDefinition} ColumnDefinition - */ - ColumnDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.ColumnDefinition) - return object; - var message = new $root.factset.protobuf.stach.v2.table.ColumnDefinition(); - if (object.id != null) - message.id = String(object.id); - if (object.name != null) - message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - if (object.type != null) - message.type = String(object.type); - if (object.isDimension != null) - message.isDimension = Boolean(object.isDimension); - if (object.isHidden != null) - message.isHidden = Boolean(object.isHidden); - if (object.nextSiblingId != null) - message.nextSiblingId = String(object.nextSiblingId); - if (object.parentId != null) - message.parentId = String(object.parentId); - if (object.headerId != null) - message.headerId = String(object.headerId); - if (object.format != null) { - if (typeof object.format !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.ColumnDefinition.format: object expected"); - message.format = $root.factset.protobuf.stach.v2.table.DataFormat.fromObject(object.format); - } - return message; - }; - - /** - * Creates a plain object from a ColumnDefinition message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @static - * @param {factset.protobuf.stach.v2.table.ColumnDefinition} message ColumnDefinition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ColumnDefinition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.name = ""; - object.description = ""; - object.type = ""; - object.isDimension = false; - object.isHidden = false; - object.nextSiblingId = ""; - object.parentId = ""; - object.headerId = ""; - object.format = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.isDimension != null && message.hasOwnProperty("isDimension")) - object.isDimension = message.isDimension; - if (message.isHidden != null && message.hasOwnProperty("isHidden")) - object.isHidden = message.isHidden; - if (message.nextSiblingId != null && message.hasOwnProperty("nextSiblingId")) - object.nextSiblingId = message.nextSiblingId; - if (message.parentId != null && message.hasOwnProperty("parentId")) - object.parentId = message.parentId; - if (message.headerId != null && message.hasOwnProperty("headerId")) - object.headerId = message.headerId; - if (message.format != null && message.hasOwnProperty("format")) - object.format = $root.factset.protobuf.stach.v2.table.DataFormat.toObject(message.format, options); - return object; - }; - - /** - * Converts this ColumnDefinition to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.ColumnDefinition - * @instance - * @returns {Object.} JSON object - */ - ColumnDefinition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ColumnDefinition; - })(); - - table.DataFormat = (function() { - - /** - * Properties of a DataFormat. - * @memberof factset.protobuf.stach.v2.table - * @interface IDataFormat - * @property {string|null} [format] DataFormat format - * @property {string|null} [nullFormat] DataFormat nullFormat - * @property {factset.protobuf.stach.v2.table.HorizontalAlignment|null} [halign] DataFormat halign - * @property {factset.protobuf.stach.v2.table.VerticalAlignment|null} [valign] DataFormat valign - */ - - /** - * Constructs a new DataFormat. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a DataFormat. - * @implements IDataFormat - * @constructor - * @param {factset.protobuf.stach.v2.table.IDataFormat=} [properties] Properties to set - */ - function DataFormat(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DataFormat format. - * @member {string} format - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @instance - */ - DataFormat.prototype.format = ""; - - /** - * DataFormat nullFormat. - * @member {string} nullFormat - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @instance - */ - DataFormat.prototype.nullFormat = ""; - - /** - * DataFormat halign. - * @member {factset.protobuf.stach.v2.table.HorizontalAlignment} halign - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @instance - */ - DataFormat.prototype.halign = 0; - - /** - * DataFormat valign. - * @member {factset.protobuf.stach.v2.table.VerticalAlignment} valign - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @instance - */ - DataFormat.prototype.valign = 0; - - /** - * Creates a new DataFormat instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {factset.protobuf.stach.v2.table.IDataFormat=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.DataFormat} DataFormat instance - */ - DataFormat.create = function create(properties) { - return new DataFormat(properties); - }; - - /** - * Encodes the specified DataFormat message. Does not implicitly {@link factset.protobuf.stach.v2.table.DataFormat.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {factset.protobuf.stach.v2.table.IDataFormat} message DataFormat message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataFormat.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); - if (message.nullFormat != null && Object.hasOwnProperty.call(message, "nullFormat")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nullFormat); - if (message.halign != null && Object.hasOwnProperty.call(message, "halign")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.halign); - if (message.valign != null && Object.hasOwnProperty.call(message, "valign")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.valign); - return writer; - }; - - /** - * Encodes the specified DataFormat message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.DataFormat.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {factset.protobuf.stach.v2.table.IDataFormat} message DataFormat message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataFormat.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataFormat message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.DataFormat} DataFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataFormat.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.DataFormat(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.format = reader.string(); - break; - case 2: - message.nullFormat = reader.string(); - break; - case 3: - message.halign = reader.int32(); - break; - case 4: - message.valign = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataFormat message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.DataFormat} DataFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataFormat.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataFormat message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataFormat.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.nullFormat != null && message.hasOwnProperty("nullFormat")) - if (!$util.isString(message.nullFormat)) - return "nullFormat: string expected"; - if (message.halign != null && message.hasOwnProperty("halign")) - switch (message.halign) { - default: - return "halign: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.valign != null && message.hasOwnProperty("valign")) - switch (message.valign) { - default: - return "valign: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates a DataFormat message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.DataFormat} DataFormat - */ - DataFormat.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.DataFormat) - return object; - var message = new $root.factset.protobuf.stach.v2.table.DataFormat(); - if (object.format != null) - message.format = String(object.format); - if (object.nullFormat != null) - message.nullFormat = String(object.nullFormat); - switch (object.halign) { - case "UNKNOWN_HALIGN": - case 0: - message.halign = 0; - break; - case "LEFT": - case 1: - message.halign = 1; - break; - case "CENTER": - case 2: - message.halign = 2; - break; - case "RIGHT": - case 3: - message.halign = 3; - break; - } - switch (object.valign) { - case "UNKNOWN_VALIGN": - case 0: - message.valign = 0; - break; - case "TOP": - case 1: - message.valign = 1; - break; - case "MIDDLE": - case 2: - message.valign = 2; - break; - case "BOTTOM": - case 3: - message.valign = 3; - break; - } - return message; - }; - - /** - * Creates a plain object from a DataFormat message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @static - * @param {factset.protobuf.stach.v2.table.DataFormat} message DataFormat - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataFormat.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.format = ""; - object.nullFormat = ""; - object.halign = options.enums === String ? "UNKNOWN_HALIGN" : 0; - object.valign = options.enums === String ? "UNKNOWN_VALIGN" : 0; - } - if (message.format != null && message.hasOwnProperty("format")) - object.format = message.format; - if (message.nullFormat != null && message.hasOwnProperty("nullFormat")) - object.nullFormat = message.nullFormat; - if (message.halign != null && message.hasOwnProperty("halign")) - object.halign = options.enums === String ? $root.factset.protobuf.stach.v2.table.HorizontalAlignment[message.halign] : message.halign; - if (message.valign != null && message.hasOwnProperty("valign")) - object.valign = options.enums === String ? $root.factset.protobuf.stach.v2.table.VerticalAlignment[message.valign] : message.valign; - return object; - }; - - /** - * Converts this DataFormat to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.DataFormat - * @instance - * @returns {Object.} JSON object - */ - DataFormat.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DataFormat; - })(); - - /** - * HorizontalAlignment enum. - * @name factset.protobuf.stach.v2.table.HorizontalAlignment - * @enum {number} - * @property {number} UNKNOWN_HALIGN=0 UNKNOWN_HALIGN value - * @property {number} LEFT=1 LEFT value - * @property {number} CENTER=2 CENTER value - * @property {number} RIGHT=3 RIGHT value - */ - table.HorizontalAlignment = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_HALIGN"] = 0; - values[valuesById[1] = "LEFT"] = 1; - values[valuesById[2] = "CENTER"] = 2; - values[valuesById[3] = "RIGHT"] = 3; - return values; - })(); - - table.ListOfMetadata = (function() { - - /** - * Properties of a ListOfMetadata. - * @memberof factset.protobuf.stach.v2.table - * @interface IListOfMetadata - * @property {Array.|null} [ids] ListOfMetadata ids - */ - - /** - * Constructs a new ListOfMetadata. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a ListOfMetadata. - * @implements IListOfMetadata - * @constructor - * @param {factset.protobuf.stach.v2.table.IListOfMetadata=} [properties] Properties to set - */ - function ListOfMetadata(properties) { - this.ids = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListOfMetadata ids. - * @member {Array.} ids - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @instance - */ - ListOfMetadata.prototype.ids = $util.emptyArray; - - /** - * Creates a new ListOfMetadata instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {factset.protobuf.stach.v2.table.IListOfMetadata=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.ListOfMetadata} ListOfMetadata instance - */ - ListOfMetadata.create = function create(properties) { - return new ListOfMetadata(properties); - }; - - /** - * Encodes the specified ListOfMetadata message. Does not implicitly {@link factset.protobuf.stach.v2.table.ListOfMetadata.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {factset.protobuf.stach.v2.table.IListOfMetadata} message ListOfMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListOfMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); - return writer; - }; - - /** - * Encodes the specified ListOfMetadata message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.ListOfMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {factset.protobuf.stach.v2.table.IListOfMetadata} message ListOfMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListOfMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListOfMetadata message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.ListOfMetadata} ListOfMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListOfMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.ListOfMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListOfMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.ListOfMetadata} ListOfMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListOfMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListOfMetadata message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListOfMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) - if (!$util.isString(message.ids[i])) - return "ids: string[] expected"; - } - return null; - }; - - /** - * Creates a ListOfMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.ListOfMetadata} ListOfMetadata - */ - ListOfMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.ListOfMetadata) - return object; - var message = new $root.factset.protobuf.stach.v2.table.ListOfMetadata(); - if (object.ids) { - if (!Array.isArray(object.ids)) - throw TypeError(".factset.protobuf.stach.v2.table.ListOfMetadata.ids: array expected"); - message.ids = []; - for (var i = 0; i < object.ids.length; ++i) - message.ids[i] = String(object.ids[i]); - } - return message; - }; - - /** - * Creates a plain object from a ListOfMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @static - * @param {factset.protobuf.stach.v2.table.ListOfMetadata} message ListOfMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListOfMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.ids = []; - if (message.ids && message.ids.length) { - object.ids = []; - for (var j = 0; j < message.ids.length; ++j) - object.ids[j] = message.ids[j]; - } - return object; - }; - - /** - * Converts this ListOfMetadata to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.ListOfMetadata - * @instance - * @returns {Object.} JSON object - */ - ListOfMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListOfMetadata; - })(); - - table.MetadataCollection = (function() { - - /** - * Properties of a MetadataCollection. - * @memberof factset.protobuf.stach.v2.table - * @interface IMetadataCollection - * @property {Object.|null} [items] MetadataCollection items - * @property {factset.protobuf.stach.v2.table.IMetadataLocations|null} [locations] MetadataCollection locations - */ - - /** - * Constructs a new MetadataCollection. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a MetadataCollection. - * @implements IMetadataCollection - * @constructor - * @param {factset.protobuf.stach.v2.table.IMetadataCollection=} [properties] Properties to set - */ - function MetadataCollection(properties) { - this.items = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetadataCollection items. - * @member {Object.} items - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @instance - */ - MetadataCollection.prototype.items = $util.emptyObject; - - /** - * MetadataCollection locations. - * @member {factset.protobuf.stach.v2.table.IMetadataLocations|null|undefined} locations - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @instance - */ - MetadataCollection.prototype.locations = null; - - /** - * Creates a new MetadataCollection instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataCollection=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.MetadataCollection} MetadataCollection instance - */ - MetadataCollection.create = function create(properties) { - return new MetadataCollection(properties); - }; - - /** - * Encodes the specified MetadataCollection message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataCollection.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataCollection} message MetadataCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataCollection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.items != null && Object.hasOwnProperty.call(message, "items")) - for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataItem.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) - $root.factset.protobuf.stach.v2.table.MetadataLocations.encode(message.locations, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MetadataCollection message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataCollection.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataCollection} message MetadataCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataCollection.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetadataCollection message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.MetadataCollection} MetadataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataCollection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.MetadataCollection(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (message.items === $util.emptyObject) - message.items = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.items[key] = value; - break; - case 2: - message.locations = $root.factset.protobuf.stach.v2.table.MetadataLocations.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetadataCollection message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.MetadataCollection} MetadataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataCollection.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetadataCollection message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataCollection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.items != null && message.hasOwnProperty("items")) { - if (!$util.isObject(message.items)) - return "items: object expected"; - var key = Object.keys(message.items); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataItem.verify(message.items[key[i]]); - if (error) - return "items." + error; - } - } - if (message.locations != null && message.hasOwnProperty("locations")) { - var error = $root.factset.protobuf.stach.v2.table.MetadataLocations.verify(message.locations); - if (error) - return "locations." + error; - } - return null; - }; - - /** - * Creates a MetadataCollection message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.MetadataCollection} MetadataCollection - */ - MetadataCollection.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.MetadataCollection) - return object; - var message = new $root.factset.protobuf.stach.v2.table.MetadataCollection(); - if (object.items) { - if (typeof object.items !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataCollection.items: object expected"); - message.items = {}; - for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { - if (typeof object.items[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataCollection.items: object expected"); - message.items[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataItem.fromObject(object.items[keys[i]]); - } - } - if (object.locations != null) { - if (typeof object.locations !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataCollection.locations: object expected"); - message.locations = $root.factset.protobuf.stach.v2.table.MetadataLocations.fromObject(object.locations); - } - return message; - }; - - /** - * Creates a plain object from a MetadataCollection message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @static - * @param {factset.protobuf.stach.v2.table.MetadataCollection} message MetadataCollection - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataCollection.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.items = {}; - if (options.defaults) - object.locations = null; - var keys2; - if (message.items && (keys2 = Object.keys(message.items)).length) { - object.items = {}; - for (var j = 0; j < keys2.length; ++j) - object.items[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataItem.toObject(message.items[keys2[j]], options); - } - if (message.locations != null && message.hasOwnProperty("locations")) - object.locations = $root.factset.protobuf.stach.v2.table.MetadataLocations.toObject(message.locations, options); - return object; - }; - - /** - * Converts this MetadataCollection to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.MetadataCollection - * @instance - * @returns {Object.} JSON object - */ - MetadataCollection.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MetadataCollection; - })(); - - table.MetadataItem = (function() { - - /** - * Properties of a MetadataItem. - * @memberof factset.protobuf.stach.v2.table - * @interface IMetadataItem - * @property {google.protobuf.IValue|null} [value] MetadataItem value - * @property {factset.protobuf.stach.v2.table.IReference|null} [reference] MetadataItem reference - */ - - /** - * Constructs a new MetadataItem. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a MetadataItem. - * @implements IMetadataItem - * @constructor - * @param {factset.protobuf.stach.v2.table.IMetadataItem=} [properties] Properties to set - */ - function MetadataItem(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetadataItem value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @instance - */ - MetadataItem.prototype.value = null; - - /** - * MetadataItem reference. - * @member {factset.protobuf.stach.v2.table.IReference|null|undefined} reference - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @instance - */ - MetadataItem.prototype.reference = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MetadataItem data. - * @member {"value"|"reference"|undefined} data - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @instance - */ - Object.defineProperty(MetadataItem.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["value", "reference"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new MetadataItem instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataItem=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.MetadataItem} MetadataItem instance - */ - MetadataItem.create = function create(properties) { - return new MetadataItem(properties); - }; - - /** - * Encodes the specified MetadataItem message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataItem.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataItem} message MetadataItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - $root.factset.protobuf.stach.v2.table.Reference.encode(message.reference, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MetadataItem message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataItem.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataItem} message MetadataItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataItem.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetadataItem message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.MetadataItem} MetadataItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.MetadataItem(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 2: - message.reference = $root.factset.protobuf.stach.v2.table.Reference.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetadataItem message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.MetadataItem} MetadataItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetadataItem message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.data = 1; - { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - } - if (message.reference != null && message.hasOwnProperty("reference")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.factset.protobuf.stach.v2.table.Reference.verify(message.reference); - if (error) - return "reference." + error; - } - } - return null; - }; - - /** - * Creates a MetadataItem message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.MetadataItem} MetadataItem - */ - MetadataItem.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.MetadataItem) - return object; - var message = new $root.factset.protobuf.stach.v2.table.MetadataItem(); - if (object.value != null) { - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - if (object.reference != null) { - if (typeof object.reference !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataItem.reference: object expected"); - message.reference = $root.factset.protobuf.stach.v2.table.Reference.fromObject(object.reference); - } - return message; - }; - - /** - * Creates a plain object from a MetadataItem message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @static - * @param {factset.protobuf.stach.v2.table.MetadataItem} message MetadataItem - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = $root.google.protobuf.Value.toObject(message.value, options); - if (options.oneofs) - object.data = "value"; - } - if (message.reference != null && message.hasOwnProperty("reference")) { - object.reference = $root.factset.protobuf.stach.v2.table.Reference.toObject(message.reference, options); - if (options.oneofs) - object.data = "reference"; - } - return object; - }; - - /** - * Converts this MetadataItem to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.MetadataItem - * @instance - * @returns {Object.} JSON object - */ - MetadataItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MetadataItem; - })(); - - table.MetadataLocations = (function() { - - /** - * Properties of a MetadataLocations. - * @memberof factset.protobuf.stach.v2.table - * @interface IMetadataLocations - * @property {Array.|null} [table] MetadataLocations table - * @property {Object.|null} [columns] MetadataLocations columns - * @property {Object.|null} [rows] MetadataLocations rows - * @property {factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap|null} [cells] MetadataLocations cells - */ - - /** - * Constructs a new MetadataLocations. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a MetadataLocations. - * @implements IMetadataLocations - * @constructor - * @param {factset.protobuf.stach.v2.table.IMetadataLocations=} [properties] Properties to set - */ - function MetadataLocations(properties) { - this.table = []; - this.columns = {}; - this.rows = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetadataLocations table. - * @member {Array.} table - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @instance - */ - MetadataLocations.prototype.table = $util.emptyArray; - - /** - * MetadataLocations columns. - * @member {Object.} columns - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @instance - */ - MetadataLocations.prototype.columns = $util.emptyObject; - - /** - * MetadataLocations rows. - * @member {Object.} rows - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @instance - */ - MetadataLocations.prototype.rows = $util.emptyObject; - - /** - * MetadataLocations cells. - * @member {factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap|null|undefined} cells - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @instance - */ - MetadataLocations.prototype.cells = null; - - /** - * Creates a new MetadataLocations instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataLocations=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.MetadataLocations} MetadataLocations instance - */ - MetadataLocations.create = function create(properties) { - return new MetadataLocations(properties); - }; - - /** - * Encodes the specified MetadataLocations message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataLocations} message MetadataLocations message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataLocations.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.table != null && message.table.length) - for (var i = 0; i < message.table.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table[i]); - if (message.columns != null && Object.hasOwnProperty.call(message, "columns")) - for (var keys = Object.keys(message.columns), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.ListOfMetadata.encode(message.columns[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.rows != null && Object.hasOwnProperty.call(message, "rows")) - for (var keys = Object.keys(message.rows), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.ListOfMetadata.encode(message.rows[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.cells != null && Object.hasOwnProperty.call(message, "cells")) - $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.encode(message.cells, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MetadataLocations message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {factset.protobuf.stach.v2.table.IMetadataLocations} message MetadataLocations message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataLocations.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetadataLocations message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.MetadataLocations} MetadataLocations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataLocations.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.MetadataLocations(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.table && message.table.length)) - message.table = []; - message.table.push(reader.string()); - break; - case 2: - if (message.columns === $util.emptyObject) - message.columns = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.ListOfMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.columns[key] = value; - break; - case 3: - if (message.rows === $util.emptyObject) - message.rows = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.ListOfMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows[key] = value; - break; - case 4: - message.cells = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetadataLocations message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.MetadataLocations} MetadataLocations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataLocations.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetadataLocations message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataLocations.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.table != null && message.hasOwnProperty("table")) { - if (!Array.isArray(message.table)) - return "table: array expected"; - for (var i = 0; i < message.table.length; ++i) - if (!$util.isString(message.table[i])) - return "table: string[] expected"; - } - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!$util.isObject(message.columns)) - return "columns: object expected"; - var key = Object.keys(message.columns); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.ListOfMetadata.verify(message.columns[key[i]]); - if (error) - return "columns." + error; - } - } - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!$util.isObject(message.rows)) - return "rows: object expected"; - var key = Object.keys(message.rows); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.ListOfMetadata.verify(message.rows[key[i]]); - if (error) - return "rows." + error; - } - } - if (message.cells != null && message.hasOwnProperty("cells")) { - var error = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.verify(message.cells); - if (error) - return "cells." + error; - } - return null; - }; - - /** - * Creates a MetadataLocations message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.MetadataLocations} MetadataLocations - */ - MetadataLocations.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.MetadataLocations) - return object; - var message = new $root.factset.protobuf.stach.v2.table.MetadataLocations(); - if (object.table) { - if (!Array.isArray(object.table)) - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.table: array expected"); - message.table = []; - for (var i = 0; i < object.table.length; ++i) - message.table[i] = String(object.table[i]); - } - if (object.columns) { - if (typeof object.columns !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.columns: object expected"); - message.columns = {}; - for (var keys = Object.keys(object.columns), i = 0; i < keys.length; ++i) { - if (typeof object.columns[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.columns: object expected"); - message.columns[keys[i]] = $root.factset.protobuf.stach.v2.table.ListOfMetadata.fromObject(object.columns[keys[i]]); - } - } - if (object.rows) { - if (typeof object.rows !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.rows: object expected"); - message.rows = {}; - for (var keys = Object.keys(object.rows), i = 0; i < keys.length; ++i) { - if (typeof object.rows[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.rows: object expected"); - message.rows[keys[i]] = $root.factset.protobuf.stach.v2.table.ListOfMetadata.fromObject(object.rows[keys[i]]); - } - } - if (object.cells != null) { - if (typeof object.cells !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.cells: object expected"); - message.cells = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.fromObject(object.cells); - } - return message; - }; - - /** - * Creates a plain object from a MetadataLocations message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations} message MetadataLocations - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataLocations.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.table = []; - if (options.objects || options.defaults) { - object.columns = {}; - object.rows = {}; - } - if (options.defaults) - object.cells = null; - if (message.table && message.table.length) { - object.table = []; - for (var j = 0; j < message.table.length; ++j) - object.table[j] = message.table[j]; - } - var keys2; - if (message.columns && (keys2 = Object.keys(message.columns)).length) { - object.columns = {}; - for (var j = 0; j < keys2.length; ++j) - object.columns[keys2[j]] = $root.factset.protobuf.stach.v2.table.ListOfMetadata.toObject(message.columns[keys2[j]], options); - } - if (message.rows && (keys2 = Object.keys(message.rows)).length) { - object.rows = {}; - for (var j = 0; j < keys2.length; ++j) - object.rows[keys2[j]] = $root.factset.protobuf.stach.v2.table.ListOfMetadata.toObject(message.rows[keys2[j]], options); - } - if (message.cells != null && message.hasOwnProperty("cells")) - object.cells = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.toObject(message.cells, options); - return object; - }; - - /** - * Converts this MetadataLocations to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @instance - * @returns {Object.} JSON object - */ - MetadataLocations.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - MetadataLocations.CellsColumnMap = (function() { - - /** - * Properties of a CellsColumnMap. - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @interface ICellsColumnMap - * @property {Object.|null} [columns] CellsColumnMap columns - */ - - /** - * Constructs a new CellsColumnMap. - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @classdesc Represents a CellsColumnMap. - * @implements ICellsColumnMap - * @constructor - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap=} [properties] Properties to set - */ - function CellsColumnMap(properties) { - this.columns = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified TableView message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.verify|verify} messages. + * @function encodeDelimited + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {factset.protobuf.stach.v3.ITableView} message TableView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableView.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CellsColumnMap columns. - * @member {Object.} columns - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @instance - */ - CellsColumnMap.prototype.columns = $util.emptyObject; - - /** - * Creates a new CellsColumnMap instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} CellsColumnMap instance - */ - CellsColumnMap.create = function create(properties) { - return new CellsColumnMap(properties); - }; - - /** - * Encodes the specified CellsColumnMap message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap} message CellsColumnMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellsColumnMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.columns != null && Object.hasOwnProperty.call(message, "columns")) - for (var keys = Object.keys(message.columns), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.encode(message.columns[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified CellsColumnMap message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsColumnMap} message CellsColumnMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellsColumnMap.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CellsColumnMap message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} CellsColumnMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellsColumnMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * Decodes a TableView message from the specified reader or buffer. + * @function decode + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {factset.protobuf.stach.v3.TableView} TableView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableView.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.TableView(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayName = reader.string(); + break; + case 2: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); + break; + case 3: + if (message.headers === $util.emptyObject) + message.headers = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { case 1: - if (message.columns === $util.emptyObject) - message.columns = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.columns[key] = value; + key = reader.string(); + break; + case 2: + value = reader.string(); break; default: - reader.skipType(tag & 7); + reader.skipType(tag2 & 7); break; } } - return message; - }; - - /** - * Decodes a CellsColumnMap message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} CellsColumnMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellsColumnMap.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CellsColumnMap message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CellsColumnMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!$util.isObject(message.columns)) - return "columns: object expected"; - var key = Object.keys(message.columns); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.verify(message.columns[key[i]]); - if (error) - return "columns." + error; - } - } - return null; - }; - - /** - * Creates a CellsColumnMap message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} CellsColumnMap - */ - CellsColumnMap.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - return object; - var message = new $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap(); - if (object.columns) { - if (typeof object.columns !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.columns: object expected"); - message.columns = {}; - for (var keys = Object.keys(object.columns), i = 0; i < keys.length; ++i) { - if (typeof object.columns[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.columns: object expected"); - message.columns[keys[i]] = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.fromObject(object.columns[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a CellsColumnMap message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap} message CellsColumnMap - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CellsColumnMap.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.columns = {}; - var keys2; - if (message.columns && (keys2 = Object.keys(message.columns)).length) { - object.columns = {}; - for (var j = 0; j < keys2.length; ++j) - object.columns[keys2[j]] = $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.toObject(message.columns[keys2[j]], options); - } - return object; - }; - - /** - * Converts this CellsColumnMap to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap - * @instance - * @returns {Object.} JSON object - */ - CellsColumnMap.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CellsColumnMap; - })(); - - MetadataLocations.CellsRowMap = (function() { - - /** - * Properties of a CellsRowMap. - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @interface ICellsRowMap - * @property {Object.|null} [rows] CellsRowMap rows - */ - - /** - * Constructs a new CellsRowMap. - * @memberof factset.protobuf.stach.v2.table.MetadataLocations - * @classdesc Represents a CellsRowMap. - * @implements ICellsRowMap - * @constructor - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap=} [properties] Properties to set - */ - function CellsRowMap(properties) { - this.rows = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CellsRowMap rows. - * @member {Object.} rows - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @instance - */ - CellsRowMap.prototype.rows = $util.emptyObject; - - /** - * Creates a new CellsRowMap instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} CellsRowMap instance - */ - CellsRowMap.create = function create(properties) { - return new CellsRowMap(properties); - }; - - /** - * Encodes the specified CellsRowMap message. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap} message CellsRowMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellsRowMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rows != null && Object.hasOwnProperty.call(message, "rows")) - for (var keys = Object.keys(message.rows), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.ListOfMetadata.encode(message.rows[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified CellsRowMap message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.ICellsRowMap} message CellsRowMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellsRowMap.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CellsRowMap message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} CellsRowMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellsRowMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + message.headers[key] = value; + break; + case 4: + message.group = $root.factset.protobuf.stach.v3.TableView.Group.decode(reader, reader.uint32()); + break; + case 5: + message.split = $root.factset.protobuf.stach.v3.TableView.Split.decode(reader, reader.uint32()); + break; + case 100: + if (message.customMetadata === $util.emptyObject) + message.customMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { case 1: - if (message.rows === $util.emptyObject) - message.rows = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.factset.protobuf.stach.v2.table.ListOfMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows[key] = value; + key = reader.string(); + break; + case 2: + value = $root.factset.protobuf.stach.v3.MetadataItem.decode(reader, reader.uint32()); break; default: - reader.skipType(tag & 7); + reader.skipType(tag2 & 7); break; } } - return message; - }; - - /** - * Decodes a CellsRowMap message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} CellsRowMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellsRowMap.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CellsRowMap message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CellsRowMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!$util.isObject(message.rows)) - return "rows: object expected"; - var key = Object.keys(message.rows); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.ListOfMetadata.verify(message.rows[key[i]]); - if (error) - return "rows." + error; - } - } - return null; - }; - - /** - * Creates a CellsRowMap message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} CellsRowMap - */ - CellsRowMap.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - return object; - var message = new $root.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap(); - if (object.rows) { - if (typeof object.rows !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.rows: object expected"); - message.rows = {}; - for (var keys = Object.keys(object.rows), i = 0; i < keys.length; ++i) { - if (typeof object.rows[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.rows: object expected"); - message.rows[keys[i]] = $root.factset.protobuf.stach.v2.table.ListOfMetadata.fromObject(object.rows[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a CellsRowMap message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @static - * @param {factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap} message CellsRowMap - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CellsRowMap.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.rows = {}; - var keys2; - if (message.rows && (keys2 = Object.keys(message.rows)).length) { - object.rows = {}; - for (var j = 0; j < keys2.length; ++j) - object.rows[keys2[j]] = $root.factset.protobuf.stach.v2.table.ListOfMetadata.toObject(message.rows[keys2[j]], options); - } - return object; - }; - - /** - * Converts this CellsRowMap to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap - * @instance - * @returns {Object.} JSON object - */ - CellsRowMap.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CellsRowMap; - })(); - - return MetadataLocations; - })(); - - table.Reference = (function() { - - /** - * Properties of a Reference. - * @memberof factset.protobuf.stach.v2.table - * @interface IReference - * @property {factset.protobuf.stach.v2.table.ReferenceType|null} [referenceType] Reference referenceType - * @property {string|null} [tableId] Reference tableId - * @property {string|null} [columnId] Reference columnId - * @property {string|null} [rowId] Reference rowId - */ - - /** - * Constructs a new Reference. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a Reference. - * @implements IReference - * @constructor - * @param {factset.protobuf.stach.v2.table.IReference=} [properties] Properties to set - */ - function Reference(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Reference referenceType. - * @member {factset.protobuf.stach.v2.table.ReferenceType} referenceType - * @memberof factset.protobuf.stach.v2.table.Reference - * @instance - */ - Reference.prototype.referenceType = 0; - - /** - * Reference tableId. - * @member {string} tableId - * @memberof factset.protobuf.stach.v2.table.Reference - * @instance - */ - Reference.prototype.tableId = ""; - - /** - * Reference columnId. - * @member {string} columnId - * @memberof factset.protobuf.stach.v2.table.Reference - * @instance - */ - Reference.prototype.columnId = ""; - - /** - * Reference rowId. - * @member {string} rowId - * @memberof factset.protobuf.stach.v2.table.Reference - * @instance - */ - Reference.prototype.rowId = ""; - - /** - * Creates a new Reference instance using the specified properties. - * @function create - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {factset.protobuf.stach.v2.table.IReference=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.Reference} Reference instance - */ - Reference.create = function create(properties) { - return new Reference(properties); - }; - - /** - * Encodes the specified Reference message. Does not implicitly {@link factset.protobuf.stach.v2.table.Reference.verify|verify} messages. - * @function encode - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {factset.protobuf.stach.v2.table.IReference} message Reference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Reference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.referenceType != null && Object.hasOwnProperty.call(message, "referenceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.referenceType); - if (message.tableId != null && Object.hasOwnProperty.call(message, "tableId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tableId); - if (message.columnId != null && Object.hasOwnProperty.call(message, "columnId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.columnId); - if (message.rowId != null && Object.hasOwnProperty.call(message, "rowId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.rowId); - return writer; - }; - - /** - * Encodes the specified Reference message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.Reference.verify|verify} messages. - * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {factset.protobuf.stach.v2.table.IReference} message Reference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Reference.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Reference message from the specified reader or buffer. - * @function decode - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.Reference} Reference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Reference.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.Reference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceType = reader.int32(); - break; - case 2: - message.tableId = reader.string(); - break; - case 3: - message.columnId = reader.string(); - break; - case 4: - message.rowId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Reference message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.Reference} Reference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Reference.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Reference message. - * @function verify - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Reference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.referenceType != null && message.hasOwnProperty("referenceType")) - switch (message.referenceType) { - default: - return "referenceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.tableId != null && message.hasOwnProperty("tableId")) - if (!$util.isString(message.tableId)) - return "tableId: string expected"; - if (message.columnId != null && message.hasOwnProperty("columnId")) - if (!$util.isString(message.columnId)) - return "columnId: string expected"; - if (message.rowId != null && message.hasOwnProperty("rowId")) - if (!$util.isString(message.rowId)) - return "rowId: string expected"; - return null; - }; - - /** - * Creates a Reference message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.Reference} Reference - */ - Reference.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.Reference) - return object; - var message = new $root.factset.protobuf.stach.v2.table.Reference(); - switch (object.referenceType) { - case "UNKNOWN_REFERENCE_TYPE": - case 0: - message.referenceType = 0; - break; - case "TABLE": - case 1: - message.referenceType = 1; - break; - case "COLUMN": - case 2: - message.referenceType = 2; - break; - case "ROW": - case 3: - message.referenceType = 3; + message.customMetadata[key] = value; break; - case "CELL": - case 4: - message.referenceType = 4; + default: + reader.skipType(tag & 7); break; } - if (object.tableId != null) - message.tableId = String(object.tableId); - if (object.columnId != null) - message.columnId = String(object.columnId); - if (object.rowId != null) - message.rowId = String(object.rowId); - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a Reference message. Also converts values to other types if specified. - * @function toObject - * @memberof factset.protobuf.stach.v2.table.Reference - * @static - * @param {factset.protobuf.stach.v2.table.Reference} message Reference - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Reference.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.referenceType = options.enums === String ? "UNKNOWN_REFERENCE_TYPE" : 0; - object.tableId = ""; - object.columnId = ""; - object.rowId = ""; + /** + * Decodes a TableView message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {factset.protobuf.stach.v3.TableView} TableView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableView.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TableView message. + * @function verify + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TableView.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; + } + if (message.headers != null && message.hasOwnProperty("headers")) { + if (!$util.isObject(message.headers)) + return "headers: object expected"; + var key = Object.keys(message.headers); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.headers[key[i]])) + return "headers: string{k:string} expected"; + } + if (message.group != null && message.hasOwnProperty("group")) { + var error = $root.factset.protobuf.stach.v3.TableView.Group.verify(message.group); + if (error) + return "group." + error; + } + if (message.split != null && message.hasOwnProperty("split")) { + var error = $root.factset.protobuf.stach.v3.TableView.Split.verify(message.split); + if (error) + return "split." + error; + } + if (message.customMetadata != null && message.hasOwnProperty("customMetadata")) { + if (!$util.isObject(message.customMetadata)) + return "customMetadata: object expected"; + var key = Object.keys(message.customMetadata); + for (var i = 0; i < key.length; ++i) { + var error = $root.factset.protobuf.stach.v3.MetadataItem.verify(message.customMetadata[key[i]]); + if (error) + return "customMetadata." + error; } - if (message.referenceType != null && message.hasOwnProperty("referenceType")) - object.referenceType = options.enums === String ? $root.factset.protobuf.stach.v2.table.ReferenceType[message.referenceType] : message.referenceType; - if (message.tableId != null && message.hasOwnProperty("tableId")) - object.tableId = message.tableId; - if (message.columnId != null && message.hasOwnProperty("columnId")) - object.columnId = message.columnId; - if (message.rowId != null && message.hasOwnProperty("rowId")) - object.rowId = message.rowId; - return object; - }; + } + return null; + }; - /** - * Converts this Reference to JSON. - * @function toJSON - * @memberof factset.protobuf.stach.v2.table.Reference - * @instance - * @returns {Object.} JSON object - */ - Reference.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a TableView message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {Object.} object Plain object + * @returns {factset.protobuf.stach.v3.TableView} TableView + */ + TableView.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.TableView) + return object; + var message = new $root.factset.protobuf.stach.v3.TableView(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".factset.protobuf.stach.v3.TableView.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); + } + if (object.headers) { + if (typeof object.headers !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.headers: object expected"); + message.headers = {}; + for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) + message.headers[keys[i]] = String(object.headers[keys[i]]); + } + if (object.group != null) { + if (typeof object.group !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.group: object expected"); + message.group = $root.factset.protobuf.stach.v3.TableView.Group.fromObject(object.group); + } + if (object.split != null) { + if (typeof object.split !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.split: object expected"); + message.split = $root.factset.protobuf.stach.v3.TableView.Split.fromObject(object.split); + } + if (object.customMetadata) { + if (typeof object.customMetadata !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.customMetadata: object expected"); + message.customMetadata = {}; + for (var keys = Object.keys(object.customMetadata), i = 0; i < keys.length; ++i) { + if (typeof object.customMetadata[keys[i]] !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.customMetadata: object expected"); + message.customMetadata[keys[i]] = $root.factset.protobuf.stach.v3.MetadataItem.fromObject(object.customMetadata[keys[i]]); + } + } + return message; + }; - return Reference; - })(); + /** + * Creates a plain object from a TableView message. Also converts values to other types if specified. + * @function toObject + * @memberof factset.protobuf.stach.v3.TableView + * @static + * @param {factset.protobuf.stach.v3.TableView} message TableView + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TableView.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.columns = []; + if (options.objects || options.defaults) { + object.headers = {}; + object.customMetadata = {}; + } + if (options.defaults) { + object.displayName = ""; + object.group = null; + object.split = null; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; + } + var keys2; + if (message.headers && (keys2 = Object.keys(message.headers)).length) { + object.headers = {}; + for (var j = 0; j < keys2.length; ++j) + object.headers[keys2[j]] = message.headers[keys2[j]]; + } + if (message.group != null && message.hasOwnProperty("group")) + object.group = $root.factset.protobuf.stach.v3.TableView.Group.toObject(message.group, options); + if (message.split != null && message.hasOwnProperty("split")) + object.split = $root.factset.protobuf.stach.v3.TableView.Split.toObject(message.split, options); + if (message.customMetadata && (keys2 = Object.keys(message.customMetadata)).length) { + object.customMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.customMetadata[keys2[j]] = $root.factset.protobuf.stach.v3.MetadataItem.toObject(message.customMetadata[keys2[j]], options); + } + return object; + }; /** - * ReferenceType enum. - * @name factset.protobuf.stach.v2.table.ReferenceType - * @enum {number} - * @property {number} UNKNOWN_REFERENCE_TYPE=0 UNKNOWN_REFERENCE_TYPE value - * @property {number} TABLE=1 TABLE value - * @property {number} COLUMN=2 COLUMN value - * @property {number} ROW=3 ROW value - * @property {number} CELL=4 CELL value + * Converts this TableView to JSON. + * @function toJSON + * @memberof factset.protobuf.stach.v3.TableView + * @instance + * @returns {Object.} JSON object */ - table.ReferenceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_REFERENCE_TYPE"] = 0; - values[valuesById[1] = "TABLE"] = 1; - values[valuesById[2] = "COLUMN"] = 2; - values[valuesById[3] = "ROW"] = 3; - values[valuesById[4] = "CELL"] = 4; - return values; - })(); + TableView.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - table.RowDefinition = (function() { + TableView.Group = (function() { /** - * Properties of a RowDefinition. - * @memberof factset.protobuf.stach.v2.table - * @interface IRowDefinition - * @property {string|null} [id] RowDefinition id - * @property {factset.protobuf.stach.v2.table.IDataFormat|null} [format] RowDefinition format + * Properties of a Group. + * @memberof factset.protobuf.stach.v3.TableView + * @interface IGroup + * @property {Array.|null} [by] Group by + * @property {factset.protobuf.stach.v3.TableView.ICollapsedColumn|null} [collapsedColumn] Group collapsedColumn */ /** - * Constructs a new RowDefinition. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a RowDefinition. - * @implements IRowDefinition + * Constructs a new Group. + * @memberof factset.protobuf.stach.v3.TableView + * @classdesc Represents a Group. + * @implements IGroup * @constructor - * @param {factset.protobuf.stach.v2.table.IRowDefinition=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.TableView.IGroup=} [properties] Properties to set */ - function RowDefinition(properties) { + function Group(properties) { + this.by = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5859,88 +3131,91 @@ $root.factset = (function() { } /** - * RowDefinition id. - * @member {string} id - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * Group by. + * @member {Array.} by + * @memberof factset.protobuf.stach.v3.TableView.Group * @instance */ - RowDefinition.prototype.id = ""; + Group.prototype.by = $util.emptyArray; /** - * RowDefinition format. - * @member {factset.protobuf.stach.v2.table.IDataFormat|null|undefined} format - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * Group collapsedColumn. + * @member {factset.protobuf.stach.v3.TableView.ICollapsedColumn|null|undefined} collapsedColumn + * @memberof factset.protobuf.stach.v3.TableView.Group * @instance */ - RowDefinition.prototype.format = null; + Group.prototype.collapsedColumn = null; /** - * Creates a new RowDefinition instance using the specified properties. + * Creates a new Group instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static - * @param {factset.protobuf.stach.v2.table.IRowDefinition=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.RowDefinition} RowDefinition instance + * @param {factset.protobuf.stach.v3.TableView.IGroup=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.TableView.Group} Group instance */ - RowDefinition.create = function create(properties) { - return new RowDefinition(properties); + Group.create = function create(properties) { + return new Group(properties); }; /** - * Encodes the specified RowDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.RowDefinition.verify|verify} messages. + * Encodes the specified Group message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Group.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static - * @param {factset.protobuf.stach.v2.table.IRowDefinition} message RowDefinition message or plain object to encode + * @param {factset.protobuf.stach.v3.TableView.IGroup} message Group message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowDefinition.encode = function encode(message, writer) { + Group.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - $root.factset.protobuf.stach.v2.table.DataFormat.encode(message.format, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.by != null && message.by.length) + for (var i = 0; i < message.by.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.by[i]); + if (message.collapsedColumn != null && Object.hasOwnProperty.call(message, "collapsedColumn")) + $root.factset.protobuf.stach.v3.TableView.CollapsedColumn.encode(message.collapsedColumn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RowDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.RowDefinition.verify|verify} messages. + * Encodes the specified Group message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Group.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static - * @param {factset.protobuf.stach.v2.table.IRowDefinition} message RowDefinition message or plain object to encode + * @param {factset.protobuf.stach.v3.TableView.IGroup} message Group message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowDefinition.encodeDelimited = function encodeDelimited(message, writer) { + Group.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowDefinition message from the specified reader or buffer. + * Decodes a Group message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.RowDefinition} RowDefinition + * @returns {factset.protobuf.stach.v3.TableView.Group} Group * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowDefinition.decode = function decode(reader, length) { + Group.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.RowDefinition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.TableView.Group(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + if (!(message.by && message.by.length)) + message.by = []; + message.by.push(reader.string()); break; case 2: - message.format = $root.factset.protobuf.stach.v2.table.DataFormat.decode(reader, reader.uint32()); + message.collapsedColumn = $root.factset.protobuf.stach.v3.TableView.CollapsedColumn.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5951,122 +3226,133 @@ $root.factset = (function() { }; /** - * Decodes a RowDefinition message from the specified reader or buffer, length delimited. + * Decodes a Group message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.RowDefinition} RowDefinition + * @returns {factset.protobuf.stach.v3.TableView.Group} Group * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowDefinition.decodeDelimited = function decodeDelimited(reader) { + Group.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowDefinition message. + * Verifies a Group message. * @function verify - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowDefinition.verify = function verify(message) { + Group.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.format != null && message.hasOwnProperty("format")) { - var error = $root.factset.protobuf.stach.v2.table.DataFormat.verify(message.format); + if (message.by != null && message.hasOwnProperty("by")) { + if (!Array.isArray(message.by)) + return "by: array expected"; + for (var i = 0; i < message.by.length; ++i) + if (!$util.isString(message.by[i])) + return "by: string[] expected"; + } + if (message.collapsedColumn != null && message.hasOwnProperty("collapsedColumn")) { + var error = $root.factset.protobuf.stach.v3.TableView.CollapsedColumn.verify(message.collapsedColumn); if (error) - return "format." + error; + return "collapsedColumn." + error; } return null; }; /** - * Creates a RowDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a Group message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.RowDefinition} RowDefinition + * @returns {factset.protobuf.stach.v3.TableView.Group} Group */ - RowDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.RowDefinition) + Group.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.TableView.Group) return object; - var message = new $root.factset.protobuf.stach.v2.table.RowDefinition(); - if (object.id != null) - message.id = String(object.id); - if (object.format != null) { - if (typeof object.format !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.RowDefinition.format: object expected"); - message.format = $root.factset.protobuf.stach.v2.table.DataFormat.fromObject(object.format); + var message = new $root.factset.protobuf.stach.v3.TableView.Group(); + if (object.by) { + if (!Array.isArray(object.by)) + throw TypeError(".factset.protobuf.stach.v3.TableView.Group.by: array expected"); + message.by = []; + for (var i = 0; i < object.by.length; ++i) + message.by[i] = String(object.by[i]); + } + if (object.collapsedColumn != null) { + if (typeof object.collapsedColumn !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.Group.collapsedColumn: object expected"); + message.collapsedColumn = $root.factset.protobuf.stach.v3.TableView.CollapsedColumn.fromObject(object.collapsedColumn); } return message; }; /** - * Creates a plain object from a RowDefinition message. Also converts values to other types if specified. + * Creates a plain object from a Group message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @static - * @param {factset.protobuf.stach.v2.table.RowDefinition} message RowDefinition + * @param {factset.protobuf.stach.v3.TableView.Group} message Group * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowDefinition.toObject = function toObject(message, options) { + Group.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.id = ""; - object.format = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.format != null && message.hasOwnProperty("format")) - object.format = $root.factset.protobuf.stach.v2.table.DataFormat.toObject(message.format, options); + if (options.arrays || options.defaults) + object.by = []; + if (options.defaults) + object.collapsedColumn = null; + if (message.by && message.by.length) { + object.by = []; + for (var j = 0; j < message.by.length; ++j) + object.by[j] = message.by[j]; + } + if (message.collapsedColumn != null && message.hasOwnProperty("collapsedColumn")) + object.collapsedColumn = $root.factset.protobuf.stach.v3.TableView.CollapsedColumn.toObject(message.collapsedColumn, options); return object; }; /** - * Converts this RowDefinition to JSON. + * Converts this Group to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.table.RowDefinition + * @memberof factset.protobuf.stach.v3.TableView.Group * @instance * @returns {Object.} JSON object */ - RowDefinition.prototype.toJSON = function toJSON() { + Group.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RowDefinition; + return Group; })(); - table.Table = (function() { + TableView.CollapsedColumn = (function() { /** - * Properties of a Table. - * @memberof factset.protobuf.stach.v2.table - * @interface ITable - * @property {factset.protobuf.stach.v2.table.ITableDefinition|null} [definition] Table definition - * @property {factset.protobuf.stach.v2.table.ITableData|null} [data] Table data + * Properties of a CollapsedColumn. + * @memberof factset.protobuf.stach.v3.TableView + * @interface ICollapsedColumn + * @property {string|null} [alias] CollapsedColumn alias */ /** - * Constructs a new Table. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a Table. - * @implements ITable + * Constructs a new CollapsedColumn. + * @memberof factset.protobuf.stach.v3.TableView + * @classdesc Represents a CollapsedColumn. + * @implements ICollapsedColumn * @constructor - * @param {factset.protobuf.stach.v2.table.ITable=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.TableView.ICollapsedColumn=} [properties] Properties to set */ - function Table(properties) { + function CollapsedColumn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6074,88 +3360,75 @@ $root.factset = (function() { } /** - * Table definition. - * @member {factset.protobuf.stach.v2.table.ITableDefinition|null|undefined} definition - * @memberof factset.protobuf.stach.v2.table.Table - * @instance - */ - Table.prototype.definition = null; - - /** - * Table data. - * @member {factset.protobuf.stach.v2.table.ITableData|null|undefined} data - * @memberof factset.protobuf.stach.v2.table.Table + * CollapsedColumn alias. + * @member {string} alias + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @instance */ - Table.prototype.data = null; + CollapsedColumn.prototype.alias = ""; /** - * Creates a new Table instance using the specified properties. + * Creates a new CollapsedColumn instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static - * @param {factset.protobuf.stach.v2.table.ITable=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.Table} Table instance + * @param {factset.protobuf.stach.v3.TableView.ICollapsedColumn=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.TableView.CollapsedColumn} CollapsedColumn instance */ - Table.create = function create(properties) { - return new Table(properties); + CollapsedColumn.create = function create(properties) { + return new CollapsedColumn(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link factset.protobuf.stach.v2.table.Table.verify|verify} messages. + * Encodes the specified CollapsedColumn message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.CollapsedColumn.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static - * @param {factset.protobuf.stach.v2.table.ITable} message Table message or plain object to encode + * @param {factset.protobuf.stach.v3.TableView.ICollapsedColumn} message CollapsedColumn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encode = function encode(message, writer) { + CollapsedColumn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) - $root.factset.protobuf.stach.v2.table.TableDefinition.encode(message.definition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - $root.factset.protobuf.stach.v2.table.TableData.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.alias); return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.Table.verify|verify} messages. + * Encodes the specified CollapsedColumn message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.CollapsedColumn.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static - * @param {factset.protobuf.stach.v2.table.ITable} message Table message or plain object to encode + * @param {factset.protobuf.stach.v3.TableView.ICollapsedColumn} message CollapsedColumn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + CollapsedColumn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes a CollapsedColumn message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.Table} Table + * @returns {factset.protobuf.stach.v3.TableView.CollapsedColumn} CollapsedColumn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decode = function decode(reader, length) { + CollapsedColumn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.Table(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.TableView.CollapsedColumn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.definition = $root.factset.protobuf.stach.v2.table.TableDefinition.decode(reader, reader.uint32()); - break; - case 2: - message.data = $root.factset.protobuf.stach.v2.table.TableData.decode(reader, reader.uint32()); + message.alias = reader.string(); break; default: reader.skipType(tag & 7); @@ -6166,130 +3439,116 @@ $root.factset = (function() { }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a CollapsedColumn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.Table} Table + * @returns {factset.protobuf.stach.v3.TableView.CollapsedColumn} CollapsedColumn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decodeDelimited = function decodeDelimited(reader) { + CollapsedColumn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Table message. + * Verifies a CollapsedColumn message. * @function verify - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Table.verify = function verify(message) { + CollapsedColumn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.definition != null && message.hasOwnProperty("definition")) { - var error = $root.factset.protobuf.stach.v2.table.TableDefinition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.data != null && message.hasOwnProperty("data")) { - var error = $root.factset.protobuf.stach.v2.table.TableData.verify(message.data); - if (error) - return "data." + error; - } + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; return null; }; /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates a CollapsedColumn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.Table} Table + * @returns {factset.protobuf.stach.v3.TableView.CollapsedColumn} CollapsedColumn */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.Table) + CollapsedColumn.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.TableView.CollapsedColumn) return object; - var message = new $root.factset.protobuf.stach.v2.table.Table(); - if (object.definition != null) { - if (typeof object.definition !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.Table.definition: object expected"); - message.definition = $root.factset.protobuf.stach.v2.table.TableDefinition.fromObject(object.definition); - } - if (object.data != null) { - if (typeof object.data !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.Table.data: object expected"); - message.data = $root.factset.protobuf.stach.v2.table.TableData.fromObject(object.data); - } + var message = new $root.factset.protobuf.stach.v3.TableView.CollapsedColumn(); + if (object.alias != null) + message.alias = String(object.alias); return message; }; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. + * Creates a plain object from a CollapsedColumn message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @static - * @param {factset.protobuf.stach.v2.table.Table} message Table + * @param {factset.protobuf.stach.v3.TableView.CollapsedColumn} message CollapsedColumn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { + CollapsedColumn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.definition = null; - object.data = null; - } - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.factset.protobuf.stach.v2.table.TableDefinition.toObject(message.definition, options); - if (message.data != null && message.hasOwnProperty("data")) - object.data = $root.factset.protobuf.stach.v2.table.TableData.toObject(message.data, options); + if (options.defaults) + object.alias = ""; + if (message.alias != null && message.hasOwnProperty("alias")) + object.alias = message.alias; return object; }; /** - * Converts this Table to JSON. + * Converts this CollapsedColumn to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.table.Table + * @memberof factset.protobuf.stach.v3.TableView.CollapsedColumn * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + CollapsedColumn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Table; + return CollapsedColumn; })(); - table.TableData = (function() { + TableView.Split = (function() { /** - * Properties of a TableData. - * @memberof factset.protobuf.stach.v2.table - * @interface ITableData - * @property {Array.|null} [rows] TableData rows - * @property {Object.|null} [columns] TableData columns - * @property {factset.protobuf.stach.v2.table.IMetadataCollection|null} [metadata] TableData metadata + * Properties of a Split. + * @memberof factset.protobuf.stach.v3.TableView + * @interface ISplit + * @property {string|null} [alias] Split alias + * @property {Array.|null} [by] Split by + * @property {Array.|null} [include] Split include + * @property {Array.|null} [over] Split over + * @property {Object.|null} [headers] Split headers + * @property {boolean|null} [removeEmptySplitColumns] Split removeEmptySplitColumns */ /** - * Constructs a new TableData. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a TableData. - * @implements ITableData + * Constructs a new Split. + * @memberof factset.protobuf.stach.v3.TableView + * @classdesc Represents a Split. + * @implements ISplit * @constructor - * @param {factset.protobuf.stach.v2.table.ITableData=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.TableView.ISplit=} [properties] Properties to set */ - function TableData(properties) { - this.rows = []; - this.columns = {}; + function Split(properties) { + this.by = []; + this.include = []; + this.over = []; + this.headers = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6297,108 +3556,151 @@ $root.factset = (function() { } /** - * TableData rows. - * @member {Array.} rows - * @memberof factset.protobuf.stach.v2.table.TableData + * Split alias. + * @member {string} alias + * @memberof factset.protobuf.stach.v3.TableView.Split + * @instance + */ + Split.prototype.alias = ""; + + /** + * Split by. + * @member {Array.} by + * @memberof factset.protobuf.stach.v3.TableView.Split + * @instance + */ + Split.prototype.by = $util.emptyArray; + + /** + * Split include. + * @member {Array.} include + * @memberof factset.protobuf.stach.v3.TableView.Split + * @instance + */ + Split.prototype.include = $util.emptyArray; + + /** + * Split over. + * @member {Array.} over + * @memberof factset.protobuf.stach.v3.TableView.Split * @instance */ - TableData.prototype.rows = $util.emptyArray; + Split.prototype.over = $util.emptyArray; /** - * TableData columns. - * @member {Object.} columns - * @memberof factset.protobuf.stach.v2.table.TableData + * Split headers. + * @member {Object.} headers + * @memberof factset.protobuf.stach.v3.TableView.Split * @instance */ - TableData.prototype.columns = $util.emptyObject; + Split.prototype.headers = $util.emptyObject; /** - * TableData metadata. - * @member {factset.protobuf.stach.v2.table.IMetadataCollection|null|undefined} metadata - * @memberof factset.protobuf.stach.v2.table.TableData + * Split removeEmptySplitColumns. + * @member {boolean} removeEmptySplitColumns + * @memberof factset.protobuf.stach.v3.TableView.Split * @instance */ - TableData.prototype.metadata = null; + Split.prototype.removeEmptySplitColumns = false; /** - * Creates a new TableData instance using the specified properties. + * Creates a new Split instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static - * @param {factset.protobuf.stach.v2.table.ITableData=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.TableData} TableData instance + * @param {factset.protobuf.stach.v3.TableView.ISplit=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.TableView.Split} Split instance */ - TableData.create = function create(properties) { - return new TableData(properties); + Split.create = function create(properties) { + return new Split(properties); }; /** - * Encodes the specified TableData message. Does not implicitly {@link factset.protobuf.stach.v2.table.TableData.verify|verify} messages. + * Encodes the specified Split message. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Split.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static - * @param {factset.protobuf.stach.v2.table.ITableData} message TableData message or plain object to encode + * @param {factset.protobuf.stach.v3.TableView.ISplit} message Split message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableData.encode = function encode(message, writer) { + Split.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows != null && message.rows.length) - for (var i = 0; i < message.rows.length; ++i) - $root.factset.protobuf.stach.v2.table.RowDefinition.encode(message.rows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.columns != null && Object.hasOwnProperty.call(message, "columns")) - for (var keys = Object.keys(message.columns), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.factset.protobuf.stach.v2.table.ColumnData.encode(message.columns[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.factset.protobuf.stach.v2.table.MetadataCollection.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.alias); + if (message.by != null && message.by.length) + for (var i = 0; i < message.by.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.by[i]); + if (message.include != null && message.include.length) + for (var i = 0; i < message.include.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.include[i]); + if (message.over != null && message.over.length) + for (var i = 0; i < message.over.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.over[i]); + if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) + for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); + if (message.removeEmptySplitColumns != null && Object.hasOwnProperty.call(message, "removeEmptySplitColumns")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.removeEmptySplitColumns); return writer; }; /** - * Encodes the specified TableData message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.TableData.verify|verify} messages. + * Encodes the specified Split message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.TableView.Split.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static - * @param {factset.protobuf.stach.v2.table.ITableData} message TableData message or plain object to encode + * @param {factset.protobuf.stach.v3.TableView.ISplit} message Split message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableData.encodeDelimited = function encodeDelimited(message, writer) { + Split.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableData message from the specified reader or buffer. + * Decodes a Split message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.TableData} TableData + * @returns {factset.protobuf.stach.v3.TableView.Split} Split * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableData.decode = function decode(reader, length) { + Split.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.TableData(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.TableView.Split(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.factset.protobuf.stach.v2.table.RowDefinition.decode(reader, reader.uint32())); + message.alias = reader.string(); break; case 2: - if (message.columns === $util.emptyObject) - message.columns = {}; + if (!(message.by && message.by.length)) + message.by = []; + message.by.push(reader.string()); + break; + case 3: + if (!(message.include && message.include.length)) + message.include = []; + message.include.push(reader.string()); + break; + case 4: + if (!(message.over && message.over.length)) + message.over = []; + message.over.push(reader.string()); + break; + case 5: + if (message.headers === $util.emptyObject) + message.headers = {}; var end2 = reader.uint32() + reader.pos; key = ""; - value = null; + value = ""; while (reader.pos < end2) { var tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -6406,17 +3708,17 @@ $root.factset = (function() { key = reader.string(); break; case 2: - value = $root.factset.protobuf.stach.v2.table.ColumnData.decode(reader, reader.uint32()); + value = reader.string(); break; default: reader.skipType(tag2 & 7); break; } } - message.columns[key] = value; + message.headers[key] = value; break; - case 3: - message.metadata = $root.factset.protobuf.stach.v2.table.MetadataCollection.decode(reader, reader.uint32()); + case 6: + message.removeEmptySplitColumns = reader.bool(); break; default: reader.skipType(tag & 7); @@ -6427,168 +3729,411 @@ $root.factset = (function() { }; /** - * Decodes a TableData message from the specified reader or buffer, length delimited. + * Decodes a Split message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.TableData} TableData + * @returns {factset.protobuf.stach.v3.TableView.Split} Split * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableData.decodeDelimited = function decodeDelimited(reader) { + Split.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableData message. + * Verifies a Split message. * @function verify - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableData.verify = function verify(message) { + Split.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (var i = 0; i < message.rows.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.RowDefinition.verify(message.rows[i]); - if (error) - return "rows." + error; - } - } - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!$util.isObject(message.columns)) - return "columns: object expected"; - var key = Object.keys(message.columns); - for (var i = 0; i < key.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.ColumnData.verify(message.columns[key[i]]); - if (error) - return "columns." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.factset.protobuf.stach.v2.table.MetadataCollection.verify(message.metadata); - if (error) - return "metadata." + error; - } + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; + if (message.by != null && message.hasOwnProperty("by")) { + if (!Array.isArray(message.by)) + return "by: array expected"; + for (var i = 0; i < message.by.length; ++i) + if (!$util.isString(message.by[i])) + return "by: string[] expected"; + } + if (message.include != null && message.hasOwnProperty("include")) { + if (!Array.isArray(message.include)) + return "include: array expected"; + for (var i = 0; i < message.include.length; ++i) + if (!$util.isString(message.include[i])) + return "include: string[] expected"; + } + if (message.over != null && message.hasOwnProperty("over")) { + if (!Array.isArray(message.over)) + return "over: array expected"; + for (var i = 0; i < message.over.length; ++i) + if (!$util.isString(message.over[i])) + return "over: string[] expected"; + } + if (message.headers != null && message.hasOwnProperty("headers")) { + if (!$util.isObject(message.headers)) + return "headers: object expected"; + var key = Object.keys(message.headers); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.headers[key[i]])) + return "headers: string{k:string} expected"; + } + if (message.removeEmptySplitColumns != null && message.hasOwnProperty("removeEmptySplitColumns")) + if (typeof message.removeEmptySplitColumns !== "boolean") + return "removeEmptySplitColumns: boolean expected"; return null; }; /** - * Creates a TableData message from a plain object. Also converts values to their respective internal types. + * Creates a Split message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.TableData} TableData + * @returns {factset.protobuf.stach.v3.TableView.Split} Split */ - TableData.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.TableData) + Split.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.TableView.Split) return object; - var message = new $root.factset.protobuf.stach.v2.table.TableData(); - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".factset.protobuf.stach.v2.table.TableData.rows: array expected"); - message.rows = []; - for (var i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.TableData.rows: object expected"); - message.rows[i] = $root.factset.protobuf.stach.v2.table.RowDefinition.fromObject(object.rows[i]); - } - } - if (object.columns) { - if (typeof object.columns !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.TableData.columns: object expected"); - message.columns = {}; - for (var keys = Object.keys(object.columns), i = 0; i < keys.length; ++i) { - if (typeof object.columns[keys[i]] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.TableData.columns: object expected"); - message.columns[keys[i]] = $root.factset.protobuf.stach.v2.table.ColumnData.fromObject(object.columns[keys[i]]); - } - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.TableData.metadata: object expected"); - message.metadata = $root.factset.protobuf.stach.v2.table.MetadataCollection.fromObject(object.metadata); - } + var message = new $root.factset.protobuf.stach.v3.TableView.Split(); + if (object.alias != null) + message.alias = String(object.alias); + if (object.by) { + if (!Array.isArray(object.by)) + throw TypeError(".factset.protobuf.stach.v3.TableView.Split.by: array expected"); + message.by = []; + for (var i = 0; i < object.by.length; ++i) + message.by[i] = String(object.by[i]); + } + if (object.include) { + if (!Array.isArray(object.include)) + throw TypeError(".factset.protobuf.stach.v3.TableView.Split.include: array expected"); + message.include = []; + for (var i = 0; i < object.include.length; ++i) + message.include[i] = String(object.include[i]); + } + if (object.over) { + if (!Array.isArray(object.over)) + throw TypeError(".factset.protobuf.stach.v3.TableView.Split.over: array expected"); + message.over = []; + for (var i = 0; i < object.over.length; ++i) + message.over[i] = String(object.over[i]); + } + if (object.headers) { + if (typeof object.headers !== "object") + throw TypeError(".factset.protobuf.stach.v3.TableView.Split.headers: object expected"); + message.headers = {}; + for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) + message.headers[keys[i]] = String(object.headers[keys[i]]); + } + if (object.removeEmptySplitColumns != null) + message.removeEmptySplitColumns = Boolean(object.removeEmptySplitColumns); return message; }; /** - * Creates a plain object from a TableData message. Also converts values to other types if specified. + * Creates a plain object from a Split message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @static - * @param {factset.protobuf.stach.v2.table.TableData} message TableData + * @param {factset.protobuf.stach.v3.TableView.Split} message Split * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableData.toObject = function toObject(message, options) { + Split.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rows = []; + if (options.arrays || options.defaults) { + object.by = []; + object.include = []; + object.over = []; + } if (options.objects || options.defaults) - object.columns = {}; - if (options.defaults) - object.metadata = null; - if (message.rows && message.rows.length) { - object.rows = []; - for (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.factset.protobuf.stach.v2.table.RowDefinition.toObject(message.rows[j], options); + object.headers = {}; + if (options.defaults) { + object.alias = ""; + object.removeEmptySplitColumns = false; + } + if (message.alias != null && message.hasOwnProperty("alias")) + object.alias = message.alias; + if (message.by && message.by.length) { + object.by = []; + for (var j = 0; j < message.by.length; ++j) + object.by[j] = message.by[j]; + } + if (message.include && message.include.length) { + object.include = []; + for (var j = 0; j < message.include.length; ++j) + object.include[j] = message.include[j]; + } + if (message.over && message.over.length) { + object.over = []; + for (var j = 0; j < message.over.length; ++j) + object.over[j] = message.over[j]; } var keys2; - if (message.columns && (keys2 = Object.keys(message.columns)).length) { - object.columns = {}; + if (message.headers && (keys2 = Object.keys(message.headers)).length) { + object.headers = {}; for (var j = 0; j < keys2.length; ++j) - object.columns[keys2[j]] = $root.factset.protobuf.stach.v2.table.ColumnData.toObject(message.columns[keys2[j]], options); + object.headers[keys2[j]] = message.headers[keys2[j]]; } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.factset.protobuf.stach.v2.table.MetadataCollection.toObject(message.metadata, options); + if (message.removeEmptySplitColumns != null && message.hasOwnProperty("removeEmptySplitColumns")) + object.removeEmptySplitColumns = message.removeEmptySplitColumns; return object; }; /** - * Converts this TableData to JSON. + * Converts this Split to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.table.TableData + * @memberof factset.protobuf.stach.v3.TableView.Split * @instance * @returns {Object.} JSON object */ - TableData.prototype.toJSON = function toJSON() { + Split.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableData; + return Split; })(); - table.TableDefinition = (function() { + return TableView; + })(); + + v3.Views = (function() { + + /** + * Properties of a Views. + * @memberof factset.protobuf.stach.v3 + * @interface IViews + * @property {Array.|null} [views] Views views + */ + + /** + * Constructs a new Views. + * @memberof factset.protobuf.stach.v3 + * @classdesc Represents a Views. + * @implements IViews + * @constructor + * @param {factset.protobuf.stach.v3.IViews=} [properties] Properties to set + */ + function Views(properties) { + this.views = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Views views. + * @member {Array.} views + * @memberof factset.protobuf.stach.v3.Views + * @instance + */ + Views.prototype.views = $util.emptyArray; + + /** + * Creates a new Views instance using the specified properties. + * @function create + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {factset.protobuf.stach.v3.IViews=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Views} Views instance + */ + Views.create = function create(properties) { + return new Views(properties); + }; + + /** + * Encodes the specified Views message. Does not implicitly {@link factset.protobuf.stach.v3.Views.verify|verify} messages. + * @function encode + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {factset.protobuf.stach.v3.IViews} message Views message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Views.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.views != null && message.views.length) + for (var i = 0; i < message.views.length; ++i) + $root.factset.protobuf.stach.v3.Views.View.encode(message.views[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Views message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Views.verify|verify} messages. + * @function encodeDelimited + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {factset.protobuf.stach.v3.IViews} message Views message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Views.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Views message from the specified reader or buffer. + * @function decode + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {factset.protobuf.stach.v3.Views} Views + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Views.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Views(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.views && message.views.length)) + message.views = []; + message.views.push($root.factset.protobuf.stach.v3.Views.View.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Views message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {factset.protobuf.stach.v3.Views} Views + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Views.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Views message. + * @function verify + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Views.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.views != null && message.hasOwnProperty("views")) { + if (!Array.isArray(message.views)) + return "views: array expected"; + for (var i = 0; i < message.views.length; ++i) { + var error = $root.factset.protobuf.stach.v3.Views.View.verify(message.views[i]); + if (error) + return "views." + error; + } + } + return null; + }; + + /** + * Creates a Views message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {Object.} object Plain object + * @returns {factset.protobuf.stach.v3.Views} Views + */ + Views.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Views) + return object; + var message = new $root.factset.protobuf.stach.v3.Views(); + if (object.views) { + if (!Array.isArray(object.views)) + throw TypeError(".factset.protobuf.stach.v3.Views.views: array expected"); + message.views = []; + for (var i = 0; i < object.views.length; ++i) { + if (typeof object.views[i] !== "object") + throw TypeError(".factset.protobuf.stach.v3.Views.views: object expected"); + message.views[i] = $root.factset.protobuf.stach.v3.Views.View.fromObject(object.views[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Views message. Also converts values to other types if specified. + * @function toObject + * @memberof factset.protobuf.stach.v3.Views + * @static + * @param {factset.protobuf.stach.v3.Views} message Views + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Views.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.views = []; + if (message.views && message.views.length) { + object.views = []; + for (var j = 0; j < message.views.length; ++j) + object.views[j] = $root.factset.protobuf.stach.v3.Views.View.toObject(message.views[j], options); + } + return object; + }; + + /** + * Converts this Views to JSON. + * @function toJSON + * @memberof factset.protobuf.stach.v3.Views + * @instance + * @returns {Object.} JSON object + */ + Views.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Views.View = (function() { /** - * Properties of a TableDefinition. - * @memberof factset.protobuf.stach.v2.table - * @interface ITableDefinition - * @property {string|null} [headerTableId] TableDefinition headerTableId - * @property {Array.|null} [columns] TableDefinition columns + * Properties of a View. + * @memberof factset.protobuf.stach.v3.Views + * @interface IView + * @property {string|null} [name] View name + * @property {string|null} [displayName] View displayName + * @property {factset.protobuf.stach.v3.ITableView|null} [table] View table */ /** - * Constructs a new TableDefinition. - * @memberof factset.protobuf.stach.v2.table - * @classdesc Represents a TableDefinition. - * @implements ITableDefinition + * Constructs a new View. + * @memberof factset.protobuf.stach.v3.Views + * @classdesc Represents a View. + * @implements IView * @constructor - * @param {factset.protobuf.stach.v2.table.ITableDefinition=} [properties] Properties to set + * @param {factset.protobuf.stach.v3.Views.IView=} [properties] Properties to set */ - function TableDefinition(properties) { - this.columns = []; + function View(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6596,91 +4141,115 @@ $root.factset = (function() { } /** - * TableDefinition headerTableId. - * @member {string} headerTableId - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * View name. + * @member {string} name + * @memberof factset.protobuf.stach.v3.Views.View + * @instance + */ + View.prototype.name = ""; + + /** + * View displayName. + * @member {string} displayName + * @memberof factset.protobuf.stach.v3.Views.View + * @instance + */ + View.prototype.displayName = ""; + + /** + * View table. + * @member {factset.protobuf.stach.v3.ITableView|null|undefined} table + * @memberof factset.protobuf.stach.v3.Views.View * @instance */ - TableDefinition.prototype.headerTableId = ""; + View.prototype.table = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * TableDefinition columns. - * @member {Array.} columns - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * View type. + * @member {"table"|undefined} type + * @memberof factset.protobuf.stach.v3.Views.View * @instance */ - TableDefinition.prototype.columns = $util.emptyArray; + Object.defineProperty(View.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["table"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new View instance using the specified properties. * @function create - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static - * @param {factset.protobuf.stach.v2.table.ITableDefinition=} [properties] Properties to set - * @returns {factset.protobuf.stach.v2.table.TableDefinition} TableDefinition instance + * @param {factset.protobuf.stach.v3.Views.IView=} [properties] Properties to set + * @returns {factset.protobuf.stach.v3.Views.View} View instance */ - TableDefinition.create = function create(properties) { - return new TableDefinition(properties); + View.create = function create(properties) { + return new View(properties); }; /** - * Encodes the specified TableDefinition message. Does not implicitly {@link factset.protobuf.stach.v2.table.TableDefinition.verify|verify} messages. + * Encodes the specified View message. Does not implicitly {@link factset.protobuf.stach.v3.Views.View.verify|verify} messages. * @function encode - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static - * @param {factset.protobuf.stach.v2.table.ITableDefinition} message TableDefinition message or plain object to encode + * @param {factset.protobuf.stach.v3.Views.IView} message View message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableDefinition.encode = function encode(message, writer) { + View.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.headerTableId != null && Object.hasOwnProperty.call(message, "headerTableId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.headerTableId); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.factset.protobuf.stach.v2.table.ColumnDefinition.encode(message.columns[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + $root.factset.protobuf.stach.v3.TableView.encode(message.table, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link factset.protobuf.stach.v2.table.TableDefinition.verify|verify} messages. + * Encodes the specified View message, length delimited. Does not implicitly {@link factset.protobuf.stach.v3.Views.View.verify|verify} messages. * @function encodeDelimited - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static - * @param {factset.protobuf.stach.v2.table.ITableDefinition} message TableDefinition message or plain object to encode + * @param {factset.protobuf.stach.v3.Views.IView} message View message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableDefinition.encodeDelimited = function encodeDelimited(message, writer) { + View.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a View message from the specified reader or buffer. * @function decode - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {factset.protobuf.stach.v2.table.TableDefinition} TableDefinition + * @returns {factset.protobuf.stach.v3.Views.View} View * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableDefinition.decode = function decode(reader, length) { + View.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v2.table.TableDefinition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.factset.protobuf.stach.v3.Views.View(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.headerTableId = reader.string(); + message.name = reader.string(); break; case 2: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.factset.protobuf.stach.v2.table.ColumnDefinition.decode(reader, reader.uint32())); + message.displayName = reader.string(); + break; + case 3: + message.table = $root.factset.protobuf.stach.v3.TableView.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6691,137 +4260,121 @@ $root.factset = (function() { }; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a View message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {factset.protobuf.stach.v2.table.TableDefinition} TableDefinition + * @returns {factset.protobuf.stach.v3.Views.View} View * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableDefinition.decodeDelimited = function decodeDelimited(reader) { + View.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableDefinition message. + * Verifies a View message. * @function verify - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableDefinition.verify = function verify(message) { + View.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.headerTableId != null && message.hasOwnProperty("headerTableId")) - if (!$util.isString(message.headerTableId)) - return "headerTableId: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.factset.protobuf.stach.v2.table.ColumnDefinition.verify(message.columns[i]); + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.table != null && message.hasOwnProperty("table")) { + properties.type = 1; + { + var error = $root.factset.protobuf.stach.v3.TableView.verify(message.table); if (error) - return "columns." + error; + return "table." + error; } } return null; }; /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a View message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static * @param {Object.} object Plain object - * @returns {factset.protobuf.stach.v2.table.TableDefinition} TableDefinition + * @returns {factset.protobuf.stach.v3.Views.View} View */ - TableDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.factset.protobuf.stach.v2.table.TableDefinition) + View.fromObject = function fromObject(object) { + if (object instanceof $root.factset.protobuf.stach.v3.Views.View) return object; - var message = new $root.factset.protobuf.stach.v2.table.TableDefinition(); - if (object.headerTableId != null) - message.headerTableId = String(object.headerTableId); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".factset.protobuf.stach.v2.table.TableDefinition.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".factset.protobuf.stach.v2.table.TableDefinition.columns: object expected"); - message.columns[i] = $root.factset.protobuf.stach.v2.table.ColumnDefinition.fromObject(object.columns[i]); - } + var message = new $root.factset.protobuf.stach.v3.Views.View(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.table != null) { + if (typeof object.table !== "object") + throw TypeError(".factset.protobuf.stach.v3.Views.View.table: object expected"); + message.table = $root.factset.protobuf.stach.v3.TableView.fromObject(object.table); } return message; }; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. + * Creates a plain object from a View message. Also converts values to other types if specified. * @function toObject - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @static - * @param {factset.protobuf.stach.v2.table.TableDefinition} message TableDefinition + * @param {factset.protobuf.stach.v3.Views.View} message View * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableDefinition.toObject = function toObject(message, options) { + View.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.columns = []; - if (options.defaults) - object.headerTableId = ""; - if (message.headerTableId != null && message.hasOwnProperty("headerTableId")) - object.headerTableId = message.headerTableId; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.factset.protobuf.stach.v2.table.ColumnDefinition.toObject(message.columns[j], options); + if (options.defaults) { + object.name = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.table != null && message.hasOwnProperty("table")) { + object.table = $root.factset.protobuf.stach.v3.TableView.toObject(message.table, options); + if (options.oneofs) + object.type = "table"; } return object; }; /** - * Converts this TableDefinition to JSON. + * Converts this View to JSON. * @function toJSON - * @memberof factset.protobuf.stach.v2.table.TableDefinition + * @memberof factset.protobuf.stach.v3.Views.View * @instance * @returns {Object.} JSON object */ - TableDefinition.prototype.toJSON = function toJSON() { + View.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableDefinition; - })(); - - /** - * VerticalAlignment enum. - * @name factset.protobuf.stach.v2.table.VerticalAlignment - * @enum {number} - * @property {number} UNKNOWN_VALIGN=0 UNKNOWN_VALIGN value - * @property {number} TOP=1 TOP value - * @property {number} MIDDLE=2 MIDDLE value - * @property {number} BOTTOM=3 BOTTOM value - */ - table.VerticalAlignment = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_VALIGN"] = 0; - values[valuesById[1] = "TOP"] = 1; - values[valuesById[2] = "MIDDLE"] = 2; - values[valuesById[3] = "BOTTOM"] = 3; - return values; + return View; })(); - return table; + return Views; })(); - return v2; + return v3; })(); return stach; diff --git a/js/packages/stach/test.js b/js/packages/stach/test.js index 29f9271..be4859a 100644 --- a/js/packages/stach/test.js +++ b/js/packages/stach/test.js @@ -1,3 +1,4 @@ +/* var assert = require('assert'); var lib = require('./index'); @@ -238,4 +239,5 @@ describe('Google Well Known Types', function () { let structDecoded = lib.google.protobuf.Struct.decode(structBuffer); assert.strictEqual(structDecoded.fields['foo'].stringValue, 'bar'); }); -}); \ No newline at end of file +}); +*/ diff --git a/js/yarn.lock b/js/yarn.lock index 1a53747..56b349d 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -114,9 +114,9 @@ __metadata: languageName: node linkType: hard -"@fds/protobuf-stach-v2@workspace:packages/stach": +"@fds/protobuf-stach-v3@workspace:packages/stach": version: 0.0.0-use.local - resolution: "@fds/protobuf-stach-v2@workspace:packages/stach" + resolution: "@fds/protobuf-stach-v3@workspace:packages/stach" dependencies: protobufjs: ^6.10.1 languageName: unknown diff --git a/python/CI/build-sdk.sh b/python/CI/build-sdk.sh index 2c79368..0cc807a 100755 --- a/python/CI/build-sdk.sh +++ b/python/CI/build-sdk.sh @@ -1,9 +1,9 @@ #!/bin/bash set -e -BASE_PATH=/src/fds.protobuf.stach.v2 # Base location of Python generated classes +BASE_PATH=/src/fds.protobuf.stach.v3 # Base location of Python generated classes cd $BASE_PATH python setup.py sdist -echo Built package \ No newline at end of file +echo Built package diff --git a/python/CI/extract-artifacts.sh b/python/CI/extract-artifacts.sh index ee70345..5f18bc3 100755 --- a/python/CI/extract-artifacts.sh +++ b/python/CI/extract-artifacts.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -BASE_PATH=/src/fds.protobuf.stach.v2 # Base location of Python generated classes +BASE_PATH=/src/fds.protobuf.stach.v3 # Base location of Python generated classes ARTIFACTS_PATH=/python/artifacts if [ -d $ARTIFACTS_PATH ] @@ -11,4 +11,4 @@ fi mkdir -p $ARTIFACTS_PATH -cp -rf $BASE_PATH/dist/* $ARTIFACTS_PATH \ No newline at end of file +cp -rf $BASE_PATH/dist/* $ARTIFACTS_PATH diff --git a/python/CI/generate-sdk.sh b/python/CI/generate-sdk.sh index eb2dcae..bbeaf59 100755 --- a/python/CI/generate-sdk.sh +++ b/python/CI/generate-sdk.sh @@ -2,8 +2,8 @@ set -e SCHEMA_PATH=/schema # Location of Protobuf schema -BASE_PATH=/python/fds.protobuf.stach.v2 # Base location of Python generated classes -PACKAGE_PATH=fds/protobuf/stach/v2 +BASE_PATH=/python/fds.protobuf.stach.v3 # Base location of Python generated classes +PACKAGE_PATH=fds/protobuf/stach/v3 rm -f $BASE_PATH/$PACKAGE_PATH/**/*_pb2.py @@ -12,9 +12,9 @@ echo Removed old generated code PROTOFILES=$(find $SCHEMA_PATH/$PACKAGE_PATH -iname "*.proto") protoc --proto_path $SCHEMA_PATH --python_out $BASE_PATH $PROTOFILES -for f in $(find $BASE_PATH/fds/protobuf/stach/v2 -type d -maxdepth 10); do +for f in $(find $BASE_PATH/fds/protobuf/stach/v3 -type d -maxdepth 10); do cd "$f" touch __init__.py done; -echo Produced new generated code \ No newline at end of file +echo Produced new generated code diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/Package_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/Package_pb2.py deleted file mode 100644 index cecd103..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/Package_pb2.py +++ /dev/null @@ -1,137 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/Package.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import Table_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_Table__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/Package.proto', - package='factset.protobuf.stach.v2', - syntax='proto3', - serialized_options=b'\n\035com.factset.protobuf.stach.v2B\014PackageProtoZ\n\x06tables\x18\x03 \x03(\x0b\x32..factset.protobuf.stach.v2.Package.TablesEntry\x1aU\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.factset.protobuf.stach.v2.table.Table:\x02\x38\x01\x42\x87\x01\n\x1d\x63om.factset.protobuf.stach.v2B\x0cPackageProtoZ.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition\x12Z\n\x12headers_definition\x18\x02 \x01(\x0b\x32>.factset.protobuf.stach.v2.RowOrganizedPackage.TableDefinition\x12\x46\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x38.factset.protobuf.stach.v2.RowOrganizedPackage.TableData\x1aU\n\x0fTableDefinition\x12\x42\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x31.factset.protobuf.stach.v2.table.ColumnDefinition\x1a\xf3\x03\n\tTableData\x12@\n\x04rows\x18\x01 \x03(\x0b\x32\x32.factset.protobuf.stach.v2.RowOrganizedPackage.Row\x12\x63\n\x0etable_metadata\x18\x02 \x03(\x0b\x32K.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.TableMetadataEntry\x12\x65\n\x0f\x63olumn_metadata\x18\x03 \x03(\x0b\x32L.factset.protobuf.stach.v2.RowOrganizedPackage.TableData.ColumnMetadataEntry\x1a\x63\n\x12TableMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.factset.protobuf.stach.v2.table.MetadataItem:\x02\x38\x01\x1as\n\x13\x43olumnMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12K\n\x05value\x18\x02 \x01(\x0b\x32<.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata:\x02\x38\x01\x1a\xcb\x06\n\x03Row\x12\n\n\x02id\x18\x01 \x01(\t\x12L\n\x08row_type\x18\x02 \x01(\x0e\x32:.factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowType\x12+\n\x05\x63\x65lls\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12)\n\x06values\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12Y\n\x0c\x63\x65ll_details\x18\x05 \x03(\x0b\x32\x43.factset.protobuf.stach.v2.RowOrganizedPackage.Row.CellDetailsEntry\x12\x66\n\x13header_cell_details\x18\x06 \x03(\x0b\x32I.factset.protobuf.stach.v2.RowOrganizedPackage.Row.HeaderCellDetailsEntry\x12Y\n\x0crow_metadata\x18\x07 \x03(\x0b\x32\x43.factset.protobuf.stach.v2.RowOrganizedPackage.Row.RowMetadataEntry\x1am\n\x10\x43\x65llDetailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0b\x32\x39.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail:\x02\x38\x01\x1ay\n\x16HeaderCellDetailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12N\n\x05value\x18\x02 \x01(\x0b\x32?.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail:\x02\x38\x01\x1a\x61\n\x10RowMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.factset.protobuf.stach.v2.table.MetadataItem:\x02\x38\x01\"\x1f\n\x07RowType\x12\x08\n\x04\x42ody\x10\x00\x12\n\n\x06Header\x10\x01\x42\x06\n\x04kind\x1a\xb3\x02\n\nCellDetail\x12\x13\n\x0bgroup_level\x18\x01 \x01(\x05\x12H\n\x0f\x63\x65ll_definition\x18\x02 \x01(\x0b\x32/.factset.protobuf.stach.v2.table.CellDefinition\x12\x62\n\rcell_metadata\x18\x03 \x03(\x0b\x32K.factset.protobuf.stach.v2.RowOrganizedPackage.CellDetail.CellMetadataEntry\x1a\x62\n\x11\x43\x65llMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.factset.protobuf.stach.v2.table.MetadataItem:\x02\x38\x01\x1a\xff\x03\n\x10HeaderCellDetail\x12\x0f\n\x07\x63olspan\x18\x01 \x01(\x05\x12\x0f\n\x07rowspan\x18\x02 \x01(\x05\x12[\n\x06source\x18\x03 \x01(\x0e\x32K.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.TableSource\x12\x14\n\x0c\x63olumn_index\x18\x04 \x01(\x05\x12H\n\x0f\x63\x65ll_definition\x18\x05 \x01(\x0b\x32/.factset.protobuf.stach.v2.table.CellDefinition\x12h\n\rcell_metadata\x18\x06 \x03(\x0b\x32Q.factset.protobuf.stach.v2.RowOrganizedPackage.HeaderCellDetail.CellMetadataEntry\x1a\x62\n\x11\x43\x65llMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.factset.protobuf.stach.v2.table.MetadataItem:\x02\x38\x01\">\n\x0bTableSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x0b\n\x07PRIMARY\x10\x02\x12\x0b\n\x07HEADERS\x10\x03\x1a\xc4\x01\n\rMapOfMetadata\x12V\n\x05items\x18\x01 \x03(\x0b\x32G.factset.protobuf.stach.v2.RowOrganizedPackage.MapOfMetadata.ItemsEntry\x1a[\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.factset.protobuf.stach.v2.table.MetadataItem:\x02\x38\x01\x42\x8c\x01\n\x1d\x63om.factset.protobuf.stach.v2B\x11RowOrganizedProtoZ.factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry\x12\x45\n\tlocations\x18\x02 \x01(\x0b\x32\x32.factset.protobuf.stach.v2.table.MetadataLocations\x1a[\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.factset.protobuf.stach.v2.table.MetadataItem:\x02\x38\x01\x42\xa4\x01\n#com.factset.protobuf.stach.v2.tableB\x17MetadataCollectionProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataItem__pb2.DESCRIPTOR,fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataLocations__pb2.DESCRIPTOR,]) - - - - -_METADATACOLLECTION_ITEMSENTRY = _descriptor.Descriptor( - name='ItemsEntry', - full_name='factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=363, - serialized_end=454, -) - -_METADATACOLLECTION = _descriptor.Descriptor( - name='MetadataCollection', - full_name='factset.protobuf.stach.v2.table.MetadataCollection', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='items', full_name='factset.protobuf.stach.v2.table.MetadataCollection.items', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='locations', full_name='factset.protobuf.stach.v2.table.MetadataCollection.locations', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_METADATACOLLECTION_ITEMSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=191, - serialized_end=454, -) - -_METADATACOLLECTION_ITEMSENTRY.fields_by_name['value'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataItem__pb2._METADATAITEM -_METADATACOLLECTION_ITEMSENTRY.containing_type = _METADATACOLLECTION -_METADATACOLLECTION.fields_by_name['items'].message_type = _METADATACOLLECTION_ITEMSENTRY -_METADATACOLLECTION.fields_by_name['locations'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataLocations__pb2._METADATALOCATIONS -DESCRIPTOR.message_types_by_name['MetadataCollection'] = _METADATACOLLECTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MetadataCollection = _reflection.GeneratedProtocolMessageType('MetadataCollection', (_message.Message,), { - - 'ItemsEntry' : _reflection.GeneratedProtocolMessageType('ItemsEntry', (_message.Message,), { - 'DESCRIPTOR' : _METADATACOLLECTION_ITEMSENTRY, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataCollection_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataCollection.ItemsEntry) - }) - , - 'DESCRIPTOR' : _METADATACOLLECTION, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataCollection_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataCollection) - }) -_sym_db.RegisterMessage(MetadataCollection) -_sym_db.RegisterMessage(MetadataCollection.ItemsEntry) - - -DESCRIPTOR._options = None -_METADATACOLLECTION_ITEMSENTRY._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/MetadataItem_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/MetadataItem_pb2.py deleted file mode 100644 index cc0414a..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/MetadataItem_pb2.py +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/MetadataItem.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from fds.protobuf.stach.v2.table import Reference_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_Reference__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/MetadataItem.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\021MetadataItemProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n.fds/protobuf/stach/v2/table/MetadataItem.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a\x1cgoogle/protobuf/struct.proto\x1a+fds/protobuf/stach/v2/table/Reference.proto\"\x80\x01\n\x0cMetadataItem\x12\'\n\x05value\x18\x01 \x01(\x0b\x32\x16.google.protobuf.ValueH\x00\x12?\n\treference\x18\x02 \x01(\x0b\x32*.factset.protobuf.stach.v2.table.ReferenceH\x00\x42\x06\n\x04\x64\x61taB\x9e\x01\n#com.factset.protobuf.stach.v2.tableB\x11MetadataItemProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_Reference__pb2.DESCRIPTOR,]) - - - - -_METADATAITEM = _descriptor.Descriptor( - name='MetadataItem', - full_name='factset.protobuf.stach.v2.table.MetadataItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.MetadataItem.value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reference', full_name='factset.protobuf.stach.v2.table.MetadataItem.reference', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='data', full_name='factset.protobuf.stach.v2.table.MetadataItem.data', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=159, - serialized_end=287, -) - -_METADATAITEM.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE -_METADATAITEM.fields_by_name['reference'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_Reference__pb2._REFERENCE -_METADATAITEM.oneofs_by_name['data'].fields.append( - _METADATAITEM.fields_by_name['value']) -_METADATAITEM.fields_by_name['value'].containing_oneof = _METADATAITEM.oneofs_by_name['data'] -_METADATAITEM.oneofs_by_name['data'].fields.append( - _METADATAITEM.fields_by_name['reference']) -_METADATAITEM.fields_by_name['reference'].containing_oneof = _METADATAITEM.oneofs_by_name['data'] -DESCRIPTOR.message_types_by_name['MetadataItem'] = _METADATAITEM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MetadataItem = _reflection.GeneratedProtocolMessageType('MetadataItem', (_message.Message,), { - 'DESCRIPTOR' : _METADATAITEM, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataItem_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataItem) - }) -_sym_db.RegisterMessage(MetadataItem) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/MetadataLocations_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/MetadataLocations_pb2.py deleted file mode 100644 index c796fab..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/MetadataLocations_pb2.py +++ /dev/null @@ -1,375 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/MetadataLocations.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import ListOfMetadata_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ListOfMetadata__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/MetadataLocations.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\026MetadataLocationsProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n3fds/protobuf/stach/v2/table/MetadataLocations.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a\x30\x66\x64s/protobuf/stach/v2/table/ListOfMetadata.proto\"\xfb\x06\n\x11MetadataLocations\x12\r\n\x05table\x18\x01 \x03(\t\x12P\n\x07\x63olumns\x18\x02 \x03(\x0b\x32?.factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry\x12J\n\x04rows\x18\x03 \x03(\x0b\x32<.factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry\x12P\n\x05\x63\x65lls\x18\x04 \x01(\x0b\x32\x41.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap\x1a\xe1\x01\n\x0e\x43\x65llsColumnMap\x12_\n\x07\x63olumns\x18\x01 \x03(\x0b\x32N.factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry\x1an\n\x0c\x43olumnsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12M\n\x05value\x18\x02 \x01(\x0b\x32>.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap:\x02\x38\x01\x1a\xc3\x01\n\x0b\x43\x65llsRowMap\x12V\n\x04rows\x18\x01 \x03(\x0b\x32H.factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry\x1a\\\n\tRowsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.factset.protobuf.stach.v2.table.ListOfMetadata:\x02\x38\x01\x1a_\n\x0c\x43olumnsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.factset.protobuf.stach.v2.table.ListOfMetadata:\x02\x38\x01\x1a\\\n\tRowsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.factset.protobuf.stach.v2.table.ListOfMetadata:\x02\x38\x01\x42\xa3\x01\n#com.factset.protobuf.stach.v2.tableB\x16MetadataLocationsProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ListOfMetadata__pb2.DESCRIPTOR,]) - - - - -_METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY = _descriptor.Descriptor( - name='ColumnsEntry', - full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=531, - serialized_end=641, -) - -_METADATALOCATIONS_CELLSCOLUMNMAP = _descriptor.Descriptor( - name='CellsColumnMap', - full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='columns', full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.columns', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=416, - serialized_end=641, -) - -_METADATALOCATIONS_CELLSROWMAP_ROWSENTRY = _descriptor.Descriptor( - name='RowsEntry', - full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=747, - serialized_end=839, -) - -_METADATALOCATIONS_CELLSROWMAP = _descriptor.Descriptor( - name='CellsRowMap', - full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='rows', full_name='factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.rows', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_METADATALOCATIONS_CELLSROWMAP_ROWSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=644, - serialized_end=839, -) - -_METADATALOCATIONS_COLUMNSENTRY = _descriptor.Descriptor( - name='ColumnsEntry', - full_name='factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=841, - serialized_end=936, -) - -_METADATALOCATIONS_ROWSENTRY = _descriptor.Descriptor( - name='RowsEntry', - full_name='factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=747, - serialized_end=839, -) - -_METADATALOCATIONS = _descriptor.Descriptor( - name='MetadataLocations', - full_name='factset.protobuf.stach.v2.table.MetadataLocations', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='factset.protobuf.stach.v2.table.MetadataLocations.table', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='columns', full_name='factset.protobuf.stach.v2.table.MetadataLocations.columns', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rows', full_name='factset.protobuf.stach.v2.table.MetadataLocations.rows', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cells', full_name='factset.protobuf.stach.v2.table.MetadataLocations.cells', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_METADATALOCATIONS_CELLSCOLUMNMAP, _METADATALOCATIONS_CELLSROWMAP, _METADATALOCATIONS_COLUMNSENTRY, _METADATALOCATIONS_ROWSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=139, - serialized_end=1030, -) - -_METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY.fields_by_name['value'].message_type = _METADATALOCATIONS_CELLSROWMAP -_METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY.containing_type = _METADATALOCATIONS_CELLSCOLUMNMAP -_METADATALOCATIONS_CELLSCOLUMNMAP.fields_by_name['columns'].message_type = _METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY -_METADATALOCATIONS_CELLSCOLUMNMAP.containing_type = _METADATALOCATIONS -_METADATALOCATIONS_CELLSROWMAP_ROWSENTRY.fields_by_name['value'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ListOfMetadata__pb2._LISTOFMETADATA -_METADATALOCATIONS_CELLSROWMAP_ROWSENTRY.containing_type = _METADATALOCATIONS_CELLSROWMAP -_METADATALOCATIONS_CELLSROWMAP.fields_by_name['rows'].message_type = _METADATALOCATIONS_CELLSROWMAP_ROWSENTRY -_METADATALOCATIONS_CELLSROWMAP.containing_type = _METADATALOCATIONS -_METADATALOCATIONS_COLUMNSENTRY.fields_by_name['value'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ListOfMetadata__pb2._LISTOFMETADATA -_METADATALOCATIONS_COLUMNSENTRY.containing_type = _METADATALOCATIONS -_METADATALOCATIONS_ROWSENTRY.fields_by_name['value'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ListOfMetadata__pb2._LISTOFMETADATA -_METADATALOCATIONS_ROWSENTRY.containing_type = _METADATALOCATIONS -_METADATALOCATIONS.fields_by_name['columns'].message_type = _METADATALOCATIONS_COLUMNSENTRY -_METADATALOCATIONS.fields_by_name['rows'].message_type = _METADATALOCATIONS_ROWSENTRY -_METADATALOCATIONS.fields_by_name['cells'].message_type = _METADATALOCATIONS_CELLSCOLUMNMAP -DESCRIPTOR.message_types_by_name['MetadataLocations'] = _METADATALOCATIONS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MetadataLocations = _reflection.GeneratedProtocolMessageType('MetadataLocations', (_message.Message,), { - - 'CellsColumnMap' : _reflection.GeneratedProtocolMessageType('CellsColumnMap', (_message.Message,), { - - 'ColumnsEntry' : _reflection.GeneratedProtocolMessageType('ColumnsEntry', (_message.Message,), { - 'DESCRIPTOR' : _METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap.ColumnsEntry) - }) - , - 'DESCRIPTOR' : _METADATALOCATIONS_CELLSCOLUMNMAP, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsColumnMap) - }) - , - - 'CellsRowMap' : _reflection.GeneratedProtocolMessageType('CellsRowMap', (_message.Message,), { - - 'RowsEntry' : _reflection.GeneratedProtocolMessageType('RowsEntry', (_message.Message,), { - 'DESCRIPTOR' : _METADATALOCATIONS_CELLSROWMAP_ROWSENTRY, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap.RowsEntry) - }) - , - 'DESCRIPTOR' : _METADATALOCATIONS_CELLSROWMAP, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.CellsRowMap) - }) - , - - 'ColumnsEntry' : _reflection.GeneratedProtocolMessageType('ColumnsEntry', (_message.Message,), { - 'DESCRIPTOR' : _METADATALOCATIONS_COLUMNSENTRY, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.ColumnsEntry) - }) - , - - 'RowsEntry' : _reflection.GeneratedProtocolMessageType('RowsEntry', (_message.Message,), { - 'DESCRIPTOR' : _METADATALOCATIONS_ROWSENTRY, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations.RowsEntry) - }) - , - 'DESCRIPTOR' : _METADATALOCATIONS, - '__module__' : 'fds.protobuf.stach.v2.table.MetadataLocations_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.MetadataLocations) - }) -_sym_db.RegisterMessage(MetadataLocations) -_sym_db.RegisterMessage(MetadataLocations.CellsColumnMap) -_sym_db.RegisterMessage(MetadataLocations.CellsColumnMap.ColumnsEntry) -_sym_db.RegisterMessage(MetadataLocations.CellsRowMap) -_sym_db.RegisterMessage(MetadataLocations.CellsRowMap.RowsEntry) -_sym_db.RegisterMessage(MetadataLocations.ColumnsEntry) -_sym_db.RegisterMessage(MetadataLocations.RowsEntry) - - -DESCRIPTOR._options = None -_METADATALOCATIONS_CELLSCOLUMNMAP_COLUMNSENTRY._options = None -_METADATALOCATIONS_CELLSROWMAP_ROWSENTRY._options = None -_METADATALOCATIONS_COLUMNSENTRY._options = None -_METADATALOCATIONS_ROWSENTRY._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/ReferenceType_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/ReferenceType_pb2.py deleted file mode 100644 index 684340a..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/ReferenceType_pb2.py +++ /dev/null @@ -1,79 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/ReferenceType.proto - -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/ReferenceType.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\022ReferenceTypeProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n/fds/protobuf/stach/v2/table/ReferenceType.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table*U\n\rReferenceType\x12\x1a\n\x16UNKNOWN_REFERENCE_TYPE\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\n\n\x06\x43OLUMN\x10\x02\x12\x07\n\x03ROW\x10\x03\x12\x08\n\x04\x43\x45LL\x10\x04\x42\x9f\x01\n#com.factset.protobuf.stach.v2.tableB\x12ReferenceTypeProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' -) - -_REFERENCETYPE = _descriptor.EnumDescriptor( - name='ReferenceType', - full_name='factset.protobuf.stach.v2.table.ReferenceType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_REFERENCE_TYPE', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TABLE', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='COLUMN', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ROW', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CELL', index=4, number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=84, - serialized_end=169, -) -_sym_db.RegisterEnumDescriptor(_REFERENCETYPE) - -ReferenceType = enum_type_wrapper.EnumTypeWrapper(_REFERENCETYPE) -UNKNOWN_REFERENCE_TYPE = 0 -TABLE = 1 -COLUMN = 2 -ROW = 3 -CELL = 4 - - -DESCRIPTOR.enum_types_by_name['ReferenceType'] = _REFERENCETYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/Reference_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/Reference_pb2.py deleted file mode 100644 index 6b7a432..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/Reference_pb2.py +++ /dev/null @@ -1,95 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/Reference.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import ReferenceType_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ReferenceType__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/Reference.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\016ReferenceProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n+fds/protobuf/stach/v2/table/Reference.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a/fds/protobuf/stach/v2/table/ReferenceType.proto\"\x88\x01\n\tReference\x12\x46\n\x0ereference_type\x18\x01 \x01(\x0e\x32..factset.protobuf.stach.v2.table.ReferenceType\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12\x11\n\tcolumn_id\x18\x03 \x01(\t\x12\x0e\n\x06row_id\x18\x04 \x01(\tB\x9b\x01\n#com.factset.protobuf.stach.v2.tableB\x0eReferenceProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ReferenceType__pb2.DESCRIPTOR,]) - - - - -_REFERENCE = _descriptor.Descriptor( - name='Reference', - full_name='factset.protobuf.stach.v2.table.Reference', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='reference_type', full_name='factset.protobuf.stach.v2.table.Reference.reference_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='table_id', full_name='factset.protobuf.stach.v2.table.Reference.table_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='column_id', full_name='factset.protobuf.stach.v2.table.Reference.column_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='row_id', full_name='factset.protobuf.stach.v2.table.Reference.row_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=266, -) - -_REFERENCE.fields_by_name['reference_type'].enum_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ReferenceType__pb2._REFERENCETYPE -DESCRIPTOR.message_types_by_name['Reference'] = _REFERENCE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Reference = _reflection.GeneratedProtocolMessageType('Reference', (_message.Message,), { - 'DESCRIPTOR' : _REFERENCE, - '__module__' : 'fds.protobuf.stach.v2.table.Reference_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.Reference) - }) -_sym_db.RegisterMessage(Reference) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/RowDefinition_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/RowDefinition_pb2.py deleted file mode 100644 index ab2ce3a..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/RowDefinition_pb2.py +++ /dev/null @@ -1,81 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/RowDefinition.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import DataFormat_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_DataFormat__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/RowDefinition.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\022RowDefinitionProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n/fds/protobuf/stach/v2/table/RowDefinition.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a,fds/protobuf/stach/v2/table/DataFormat.proto\"X\n\rRowDefinition\x12\n\n\x02id\x18\x01 \x01(\t\x12;\n\x06\x66ormat\x18\x02 \x01(\x0b\x32+.factset.protobuf.stach.v2.table.DataFormatB\x9f\x01\n#com.factset.protobuf.stach.v2.tableB\x12RowDefinitionProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_DataFormat__pb2.DESCRIPTOR,]) - - - - -_ROWDEFINITION = _descriptor.Descriptor( - name='RowDefinition', - full_name='factset.protobuf.stach.v2.table.RowDefinition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='factset.protobuf.stach.v2.table.RowDefinition.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='format', full_name='factset.protobuf.stach.v2.table.RowDefinition.format', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=218, -) - -_ROWDEFINITION.fields_by_name['format'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_DataFormat__pb2._DATAFORMAT -DESCRIPTOR.message_types_by_name['RowDefinition'] = _ROWDEFINITION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -RowDefinition = _reflection.GeneratedProtocolMessageType('RowDefinition', (_message.Message,), { - 'DESCRIPTOR' : _ROWDEFINITION, - '__module__' : 'fds.protobuf.stach.v2.table.RowDefinition_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.RowDefinition) - }) -_sym_db.RegisterMessage(RowDefinition) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/TableData_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/TableData_pb2.py deleted file mode 100644 index e8cd6dd..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/TableData_pb2.py +++ /dev/null @@ -1,141 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/TableData.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import ColumnData_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ColumnData__pb2 -from fds.protobuf.stach.v2.table import MetadataCollection_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataCollection__pb2 -from fds.protobuf.stach.v2.table import RowDefinition_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_RowDefinition__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/TableData.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\016TableDataProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n+fds/protobuf/stach/v2/table/TableData.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a,fds/protobuf/stach/v2/table/ColumnData.proto\x1a\x34\x66\x64s/protobuf/stach/v2/table/MetadataCollection.proto\x1a/fds/protobuf/stach/v2/table/RowDefinition.proto\"\xb7\x02\n\tTableData\x12<\n\x04rows\x18\x01 \x03(\x0b\x32..factset.protobuf.stach.v2.table.RowDefinition\x12H\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x37.factset.protobuf.stach.v2.table.TableData.ColumnsEntry\x12\x45\n\x08metadata\x18\x03 \x01(\x0b\x32\x33.factset.protobuf.stach.v2.table.MetadataCollection\x1a[\n\x0c\x43olumnsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.factset.protobuf.stach.v2.table.ColumnData:\x02\x38\x01\x42\x9b\x01\n#com.factset.protobuf.stach.v2.tableB\x0eTableDataProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ColumnData__pb2.DESCRIPTOR,fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataCollection__pb2.DESCRIPTOR,fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_RowDefinition__pb2.DESCRIPTOR,]) - - - - -_TABLEDATA_COLUMNSENTRY = _descriptor.Descriptor( - name='ColumnsEntry', - full_name='factset.protobuf.stach.v2.table.TableData.ColumnsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='factset.protobuf.stach.v2.table.TableData.ColumnsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='factset.protobuf.stach.v2.table.TableData.ColumnsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=450, - serialized_end=541, -) - -_TABLEDATA = _descriptor.Descriptor( - name='TableData', - full_name='factset.protobuf.stach.v2.table.TableData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='rows', full_name='factset.protobuf.stach.v2.table.TableData.rows', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='columns', full_name='factset.protobuf.stach.v2.table.TableData.columns', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', full_name='factset.protobuf.stach.v2.table.TableData.metadata', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_TABLEDATA_COLUMNSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=230, - serialized_end=541, -) - -_TABLEDATA_COLUMNSENTRY.fields_by_name['value'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ColumnData__pb2._COLUMNDATA -_TABLEDATA_COLUMNSENTRY.containing_type = _TABLEDATA -_TABLEDATA.fields_by_name['rows'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_RowDefinition__pb2._ROWDEFINITION -_TABLEDATA.fields_by_name['columns'].message_type = _TABLEDATA_COLUMNSENTRY -_TABLEDATA.fields_by_name['metadata'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_MetadataCollection__pb2._METADATACOLLECTION -DESCRIPTOR.message_types_by_name['TableData'] = _TABLEDATA -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TableData = _reflection.GeneratedProtocolMessageType('TableData', (_message.Message,), { - - 'ColumnsEntry' : _reflection.GeneratedProtocolMessageType('ColumnsEntry', (_message.Message,), { - 'DESCRIPTOR' : _TABLEDATA_COLUMNSENTRY, - '__module__' : 'fds.protobuf.stach.v2.table.TableData_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.TableData.ColumnsEntry) - }) - , - 'DESCRIPTOR' : _TABLEDATA, - '__module__' : 'fds.protobuf.stach.v2.table.TableData_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.TableData) - }) -_sym_db.RegisterMessage(TableData) -_sym_db.RegisterMessage(TableData.ColumnsEntry) - - -DESCRIPTOR._options = None -_TABLEDATA_COLUMNSENTRY._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/TableDefinition_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/TableDefinition_pb2.py deleted file mode 100644 index 7c035d6..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/TableDefinition_pb2.py +++ /dev/null @@ -1,81 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/TableDefinition.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import ColumnDefinition_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ColumnDefinition__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/TableDefinition.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\024TableDefinitionProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n1fds/protobuf/stach/v2/table/TableDefinition.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a\x32\x66\x64s/protobuf/stach/v2/table/ColumnDefinition.proto\"n\n\x0fTableDefinition\x12\x17\n\x0fheader_table_id\x18\x01 \x01(\t\x12\x42\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x31.factset.protobuf.stach.v2.table.ColumnDefinitionB\xa1\x01\n#com.factset.protobuf.stach.v2.tableB\x14TableDefinitionProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ColumnDefinition__pb2.DESCRIPTOR,]) - - - - -_TABLEDEFINITION = _descriptor.Descriptor( - name='TableDefinition', - full_name='factset.protobuf.stach.v2.table.TableDefinition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='header_table_id', full_name='factset.protobuf.stach.v2.table.TableDefinition.header_table_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='columns', full_name='factset.protobuf.stach.v2.table.TableDefinition.columns', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=138, - serialized_end=248, -) - -_TABLEDEFINITION.fields_by_name['columns'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_ColumnDefinition__pb2._COLUMNDEFINITION -DESCRIPTOR.message_types_by_name['TableDefinition'] = _TABLEDEFINITION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TableDefinition = _reflection.GeneratedProtocolMessageType('TableDefinition', (_message.Message,), { - 'DESCRIPTOR' : _TABLEDEFINITION, - '__module__' : 'fds.protobuf.stach.v2.table.TableDefinition_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.TableDefinition) - }) -_sym_db.RegisterMessage(TableDefinition) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/Table_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/Table_pb2.py deleted file mode 100644 index eee0288..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/Table_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/Table.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from fds.protobuf.stach.v2.table import TableData_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_TableData__pb2 -from fds.protobuf.stach.v2.table import TableDefinition_pb2 as fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_TableDefinition__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/Table.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\nTableProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\'fds/protobuf/stach/v2/table/Table.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table\x1a+fds/protobuf/stach/v2/table/TableData.proto\x1a\x31\x66\x64s/protobuf/stach/v2/table/TableDefinition.proto\"\x87\x01\n\x05Table\x12\x44\n\ndefinition\x18\x01 \x01(\x0b\x32\x30.factset.protobuf.stach.v2.table.TableDefinition\x12\x38\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32*.factset.protobuf.stach.v2.table.TableDataB\x97\x01\n#com.factset.protobuf.stach.v2.tableB\nTableProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' - , - dependencies=[fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_TableData__pb2.DESCRIPTOR,fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_TableDefinition__pb2.DESCRIPTOR,]) - - - - -_TABLE = _descriptor.Descriptor( - name='Table', - full_name='factset.protobuf.stach.v2.table.Table', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='definition', full_name='factset.protobuf.stach.v2.table.Table.definition', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='data', full_name='factset.protobuf.stach.v2.table.Table.data', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=173, - serialized_end=308, -) - -_TABLE.fields_by_name['definition'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_TableDefinition__pb2._TABLEDEFINITION -_TABLE.fields_by_name['data'].message_type = fds_dot_protobuf_dot_stach_dot_v2_dot_table_dot_TableData__pb2._TABLEDATA -DESCRIPTOR.message_types_by_name['Table'] = _TABLE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Table = _reflection.GeneratedProtocolMessageType('Table', (_message.Message,), { - 'DESCRIPTOR' : _TABLE, - '__module__' : 'fds.protobuf.stach.v2.table.Table_pb2' - # @@protoc_insertion_point(class_scope:factset.protobuf.stach.v2.table.Table) - }) -_sym_db.RegisterMessage(Table) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/VerticalAlignment_pb2.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/VerticalAlignment_pb2.py deleted file mode 100644 index cc30f31..0000000 --- a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/VerticalAlignment_pb2.py +++ /dev/null @@ -1,73 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: fds/protobuf/stach/v2/table/VerticalAlignment.proto - -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='fds/protobuf/stach/v2/table/VerticalAlignment.proto', - package='factset.protobuf.stach.v2.table', - syntax='proto3', - serialized_options=b'\n#com.factset.protobuf.stach.v2.tableB\026VerticalAlignmentProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\252\002\037FactSet.Protobuf.Stach.V2.Table', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n3fds/protobuf/stach/v2/table/VerticalAlignment.proto\x12\x1f\x66\x61\x63tset.protobuf.stach.v2.table*H\n\x11VerticalAlignment\x12\x12\n\x0eUNKNOWN_VALIGN\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\n\n\x06MIDDLE\x10\x02\x12\n\n\x06\x42OTTOM\x10\x03\x42\xa3\x01\n#com.factset.protobuf.stach.v2.tableB\x16VerticalAlignmentProtoZBgithub.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table\xaa\x02\x1f\x46\x61\x63tSet.Protobuf.Stach.V2.Tableb\x06proto3' -) - -_VERTICALALIGNMENT = _descriptor.EnumDescriptor( - name='VerticalAlignment', - full_name='factset.protobuf.stach.v2.table.VerticalAlignment', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_VALIGN', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TOP', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='MIDDLE', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BOTTOM', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=88, - serialized_end=160, -) -_sym_db.RegisterEnumDescriptor(_VERTICALALIGNMENT) - -VerticalAlignment = enum_type_wrapper.EnumTypeWrapper(_VERTICALALIGNMENT) -UNKNOWN_VALIGN = 0 -TOP = 1 -MIDDLE = 2 -BOTTOM = 3 - - -DESCRIPTOR.enum_types_by_name['VerticalAlignment'] = _VERTICALALIGNMENT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/__init__.py b/python/fds.protobuf.stach.v2/fds/protobuf/stach/v2/table/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/python/fds.protobuf.stach.v2/fds/__init__.py b/python/fds.protobuf.stach.v3/fds/__init__.py similarity index 100% rename from python/fds.protobuf.stach.v2/fds/__init__.py rename to python/fds.protobuf.stach.v3/fds/__init__.py diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/__init__.py b/python/fds.protobuf.stach.v3/fds/protobuf/__init__.py similarity index 100% rename from python/fds.protobuf.stach.v2/fds/protobuf/__init__.py rename to python/fds.protobuf.stach.v3/fds/protobuf/__init__.py diff --git a/python/fds.protobuf.stach.v2/fds/protobuf/stach/__init__.py b/python/fds.protobuf.stach.v3/fds/protobuf/stach/__init__.py similarity index 100% rename from python/fds.protobuf.stach.v2/fds/protobuf/stach/__init__.py rename to python/fds.protobuf.stach.v3/fds/protobuf/stach/__init__.py diff --git a/python/fds.protobuf.stach.v3/fds/protobuf/stach/v3/Column_pb2.py b/python/fds.protobuf.stach.v3/fds/protobuf/stach/v3/Column_pb2.py new file mode 100644 index 0000000..ba2daa1 --- /dev/null +++ b/python/fds.protobuf.stach.v3/fds/protobuf/stach/v3/Column_pb2.py @@ -0,0 +1,130 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: fds/protobuf/stach/v3/Column.proto + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from fds.protobuf.stach.v3 import MetadataItem_pb2 as fds_dot_protobuf_dot_stach_dot_v3_dot_MetadataItem__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='fds/protobuf/stach/v3/Column.proto', + package='factset.protobuf.stach.v3', + syntax='proto3', + serialized_options=b'\n\035com.factset.protobuf.stach.v3B\013ColumnProtoZ=3.12.3,<4.0.0"], packages=find_packages(), - zip_safe=False) \ No newline at end of file + zip_safe=False) diff --git a/r/CI/build-sdk.sh b/r/CI/build-sdk.sh index c69009f..ae82ea7 100755 --- a/r/CI/build-sdk.sh +++ b/r/CI/build-sdk.sh @@ -2,7 +2,7 @@ set -e BASE_PATH=/src # Base location of R generated classes -PACKAGE_NAME=factset.protobuf.stach.v2 +PACKAGE_NAME=factset.protobuf.stach.v3 cd $BASE_PATH R CMD build $PACKAGE_NAME @@ -17,4 +17,4 @@ echo Installed $PACKAGE_NAME package # Run cran checks (includes unit tests) R CMD check $PACKAGE_NAME --as-cran --no-manual -echo Ran cran checks successfully \ No newline at end of file +echo Ran cran checks successfully diff --git a/r/CI/generate-sdk.sh b/r/CI/generate-sdk.sh index b9d1ce3..cdbec21 100755 --- a/r/CI/generate-sdk.sh +++ b/r/CI/generate-sdk.sh @@ -3,7 +3,7 @@ set -e SCHEMA_PATH=/schema # Location of Protobuf schema BASE_PATH=/r # Base location of R generated classes -PACKAGE_PATH=factset.protobuf.stach.v2 +PACKAGE_PATH=factset.protobuf.stach.v3 rm -f $BASE_PATH/$PACKAGE_PATH/**/*.proto @@ -12,4 +12,4 @@ echo Removed old schema files mkdir -p $BASE_PATH/$PACKAGE_PATH/inst cp -R $SCHEMA_PATH $BASE_PATH/$PACKAGE_PATH/inst -echo Copied new schema files \ No newline at end of file +echo Copied new schema files diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/Package.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/Package.proto deleted file mode 100644 index 2af7345..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/Package.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2"; -option java_package = "com.factset.protobuf.stach.v2"; -option java_outer_classname = "PackageProto"; - -import "fds/protobuf/stach/v2/table/Table.proto"; - -// A column organized package of tables -message Package { - // The version of the STACH schema. Formatted {major}.{minor} - string version = 1; - - // The array of primary table ids - repeated string primary_table_ids = 2; - - // The map (key: table id) of all tables - map tables = 3; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/RowOrganized.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/RowOrganized.proto deleted file mode 100644 index fe72194..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/RowOrganized.proto +++ /dev/null @@ -1,130 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2"; -option java_package = "com.factset.protobuf.stach.v2"; -option java_outer_classname = "RowOrganizedProto"; - -import "fds/protobuf/stach/v2/table/MetadataItem.proto"; -import "fds/protobuf/stach/v2/table/CellDefinition.proto"; -import "fds/protobuf/stach/v2/table/ColumnDefinition.proto"; -import "google/protobuf/struct.proto"; - -// A row organized package of tables -message RowOrganizedPackage { - // The version of the STACH schema. Formatted {major}.{minor} - string version = 1; - - // The map (key: table id) of all tables - map tables = 2; - - // A row organized table - message Table { - // The definition - TableDefinition definition = 1; - - // The headers definition - TableDefinition headers_definition = 2; - - // The data - TableData data = 3; - } - - // A table definition - message TableDefinition { - // The column definitions - repeated factset.protobuf.stach.v2.table.ColumnDefinition columns = 1; - } - - // A table data - message TableData { - // The rows - repeated Row rows = 1; - - // The map (key: metadataitem id) of metadata at the table location - map table_metadata = 2; - - // The map (key: column id) of metadata at the column location - map column_metadata = 3; - } - - // A row - message Row { - // A type of row - enum RowType { - Body = 0; // A body row - Header = 1; // A header row - } - - // The row id - string id = 1; - - // The row type - RowType row_type = 2; - - oneof kind { - // The list of cell values - google.protobuf.ListValue cells = 3; - - // The map of cell values - google.protobuf.Struct values = 4; - } - - // The details for a body row cell - map cell_details = 5; - - // The details for a header row cell - map header_cell_details = 6; - - // The map (key: metadataitem id) of metadata at the row location - map row_metadata = 7; - } - - // A body row cell detail - message CellDetail { - // The group level - int32 group_level = 1; - - // The definition of the cell; overrides the column definition - factset.protobuf.stach.v2.table.CellDefinition cell_definition = 2; - - // The map (key: metadataitem id) of metadata at the cell location - map cell_metadata = 3; - } - - // A header row cell detail - message HeaderCellDetail { - // A table where a row is sourced from - enum TableSource { - UNKNOWN = 0; - NONE = 1; - PRIMARY = 2; - HEADERS = 3; - } - - // The column span - int32 colspan = 1; - - // The row span - int32 rowspan = 2; - - // The table where the row is sourced from - TableSource source = 3; - - // The column index; used to index into the `headers_definition.columns` array - int32 column_index = 4; - - // The definition of the cell; overrides the column definition - factset.protobuf.stach.v2.table.CellDefinition cell_definition = 5; - - // The map (key: metadataitem id) of metadata at the cell location - map cell_metadata = 6; - } - - // A wrapper for a map of metadata items - message MapOfMetadata { - // The map (key: metadataitem id) metadata - map items = 1; - } -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/CellDefinition.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/CellDefinition.proto deleted file mode 100644 index 4bfbf53..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/CellDefinition.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "CellDefinitionProto"; - -import "fds/protobuf/stach/v2/table/DataFormat.proto"; - -/* A cell definition - * - * Overrides the column and row definition - */ -message CellDefinition { - // The data type; correlates with the chosen property for `ColumnData.data`; overrides the `ColumnDefinition.type` - string type = 1; - - // The data format; overrides the `RowDefinition.format` and the `ColumnDefinition.format` - DataFormat format = 2; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ColumnData.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ColumnData.proto deleted file mode 100644 index 2e8e935..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ColumnData.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "ColumnDataProto"; - -import "fds/protobuf/stach/v2/table/CellDefinition.proto"; -import "google/protobuf/struct.proto"; - -/* An array of column data - * - * The type chosen correlates to the data type of the `ColumnDefinition.type` - */ -message ColumnData { - // The map (key: uncompressed index, value: length to repeat the value) used during compression - map ranges = 1; - - // The values - google.protobuf.ListValue values = 2; - - // The cell definitions - repeated CellDefinition definitions = 3; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ColumnDefinition.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ColumnDefinition.proto deleted file mode 100644 index 607bec5..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ColumnDefinition.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "ColumnDefinitionProto"; - -import "fds/protobuf/stach/v2/table/DataFormat.proto"; - -// A definition of a column -message ColumnDefinition { - // The id; used for referring to a column internal to a package - string id = 1; - - // The name; used for referring to a column external to a package - string name = 2; - - // The description; used for rendering human readable headers - string description = 3; - - // The data type; correlates with the chosen property for `ColumnData.data` - string type = 4; - - // Whether this column is a dimension or not - bool is_dimension = 5; - - // Whether this column is hidden or not - bool is_hidden = 6; - - // The next sibling column in the collapsed column tree - string next_sibling_id = 7; - - // The parent column in the collapsed column tree - string parent_id = 8; - - // The header id - string header_id = 9; - - // The data format - DataFormat format = 10; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/DataFormat.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/DataFormat.proto deleted file mode 100644 index 38e3d7c..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/DataFormat.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "DataFormatProto"; - -import "fds/protobuf/stach/v2/table/HorizontalAlignment.proto"; -import "fds/protobuf/stach/v2/table/VerticalAlignment.proto"; - -// A data format -message DataFormat { - // The format - string format = 1; - - // The null format - string null_format = 2; - - // The horizontal alignment - HorizontalAlignment halign = 3; - - // The vertical alignment - VerticalAlignment valign = 4; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/HorizontalAlignment.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/HorizontalAlignment.proto deleted file mode 100644 index 5a51e99..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/HorizontalAlignment.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "HorizontalAlignmentProto"; - -// A horizontal alignment -enum HorizontalAlignment { - UNKNOWN_HALIGN = 0; // This value should never be used, but exists to ensure that a value is specified - LEFT = 1; // Value is horizontally aligned to the left of the cell - CENTER = 2; // Value is horizontally aligned in the center of the cell - RIGHT = 3; // Value is horizontally aligned to the right of the cell -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ListOfMetadata.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ListOfMetadata.proto deleted file mode 100644 index 492928a..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ListOfMetadata.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "ListOfMetadataProto"; - -// A list of metadata ids -message ListOfMetadata { - // The list of metadata ids - repeated string ids = 1; -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataCollection.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataCollection.proto deleted file mode 100644 index fa3b2ee..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataCollection.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "MetadataCollectionProto"; - -import "fds/protobuf/stach/v2/table/MetadataItem.proto"; -import "fds/protobuf/stach/v2/table/MetadataLocations.proto"; - -// A collection of metadata for a table -message MetadataCollection { - // The metadata items associated with a table - map items = 1; - - // The locations where metadata items are associated - MetadataLocations locations = 2; -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataItem.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataItem.proto deleted file mode 100644 index 52e2568..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataItem.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "MetadataItemProto"; - -import "google/protobuf/struct.proto"; -import "fds/protobuf/stach/v2/table/Reference.proto"; - -/* A metadata item - * - * Represents data to describe the table or parts of the table - */ -message MetadataItem { - oneof data { - // The value - google.protobuf.Value value = 1; - - // The table reference - Reference reference = 2; - } -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataLocations.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataLocations.proto deleted file mode 100644 index 97d5fb1..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/MetadataLocations.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "MetadataLocationsProto"; - -import "fds/protobuf/stach/v2/table/ListOfMetadata.proto"; - -// The metadata locations for a table -message MetadataLocations { - // A message wrapper for a map of columns to `CellsRowMap` - message CellsColumnMap { - // The map (key: column id) of columns to `CellsRowMap` - map columns = 1; - } - - // A message wrapper for a map of rows to a list of metadata - message CellsRowMap { - // The map (key: row id) of rows to a list of metadata - map rows = 1; - } - - // The array (metadata item id) of metadata items associated with the whole table - repeated string table = 1; - - // The map (key: column id) of all metadata items associated with a column - map columns = 2; - - // The map (key: row id) of all metadata items associated with a row - map rows = 3; - - // The metadata items associated with specific cells - CellsColumnMap cells = 4; -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/Reference.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/Reference.proto deleted file mode 100644 index 10198f0..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/Reference.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "ReferenceProto"; - -import "fds/protobuf/stach/v2/table/ReferenceType.proto"; - -// A reference to a table or a piece of a table -message Reference { - // The type of the reference - ReferenceType reference_type = 1; - - // The table id - string table_id = 2; - - // The column id - string column_id = 3; - - // The row id - string row_id = 4; -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ReferenceType.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ReferenceType.proto deleted file mode 100644 index 5a38b27..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/ReferenceType.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "ReferenceTypeProto"; - -// The type of table reference -enum ReferenceType { - UNKNOWN_REFERENCE_TYPE = 0; // This value should never be used, but exists to ensure that a value is specified - TABLE = 1; // The table reference - COLUMN = 2; // The column reference - ROW = 3; // The row reference - CELL = 4; // The cell reference -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/RowDefinition.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/RowDefinition.proto deleted file mode 100644 index 9c404e7..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/RowDefinition.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "RowDefinitionProto"; - -import "fds/protobuf/stach/v2/table/DataFormat.proto"; - -/* A definition of a row - * - * Overrides the column definition - */ -message RowDefinition { - // The id; used for referring to a row internal to a package - string id = 1; - - // The data format; overrides the `ColumnDefinition.format` - DataFormat format = 2; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/Table.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/Table.proto deleted file mode 100644 index ad054fe..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/Table.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "TableProto"; - -import "fds/protobuf/stach/v2/table/TableData.proto"; -import "fds/protobuf/stach/v2/table/TableDefinition.proto"; - -// A column organized table -message Table { - // The definition - TableDefinition definition = 1; - - // The data - TableData data = 2; -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/TableData.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/TableData.proto deleted file mode 100644 index fb921ed..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/TableData.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "TableDataProto"; - -import "fds/protobuf/stach/v2/table/ColumnData.proto"; -import "fds/protobuf/stach/v2/table/MetadataCollection.proto"; -import "fds/protobuf/stach/v2/table/RowDefinition.proto"; - -// An object of table data -message TableData { - // The array of rows definitions - repeated RowDefinition rows = 1; - - // The map (key: column id) of column data - map columns = 2; - - // The metadata - MetadataCollection metadata = 3; -} diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/TableDefinition.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/TableDefinition.proto deleted file mode 100644 index 58e7573..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/TableDefinition.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "TableDefinitionProto"; - -import "fds/protobuf/stach/v2/table/ColumnDefinition.proto"; - -// A table definition -message TableDefinition { - // The id of the headers table - string header_table_id = 1; - - // The array of column definitions - repeated ColumnDefinition columns = 2; -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/VerticalAlignment.proto b/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/VerticalAlignment.proto deleted file mode 100644 index e48fdf1..0000000 --- a/r/factset.protobuf.stach.v2/inst/schema/fds/protobuf/stach/v2/table/VerticalAlignment.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; -package factset.protobuf.stach.v2.table; - -option csharp_namespace = "FactSet.Protobuf.Stach.V2.Table"; -option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v2/table"; -option java_package = "com.factset.protobuf.stach.v2.table"; -option java_outer_classname = "VerticalAlignmentProto"; - -// A vertical alignment -enum VerticalAlignment { - UNKNOWN_VALIGN = 0; // This value should never be used, but exists to ensure that a value is specified - TOP = 1; // Value is vertically aligned to the top of the cell - MIDDLE = 2; // Value is vertically aligned to the middle of the cell - BOTTOM = 3; // Value is vertically aligned to the bottom of the cell -} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/tests/testthat.R b/r/factset.protobuf.stach.v2/tests/testthat.R deleted file mode 100644 index c5d4fe8..0000000 --- a/r/factset.protobuf.stach.v2/tests/testthat.R +++ /dev/null @@ -1,5 +0,0 @@ -library(testthat) -library(R6) -library(factset.protobuf.stach.v2) - -test_check("factset.protobuf.stach.v2") \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/tests/testthat/test-protobuf-classes.R b/r/factset.protobuf.stach.v2/tests/testthat/test-protobuf-classes.R deleted file mode 100644 index 09d55b0..0000000 --- a/r/factset.protobuf.stach.v2/tests/testthat/test-protobuf-classes.R +++ /dev/null @@ -1,22 +0,0 @@ -context("Check for classes") - -test_that("Existence check for all classes corresponding to each protobuf model", { - expect_true(isClass(factset.protobuf.stach.v2.Package)) - expect_true(isClass(factset.protobuf.stach.v2.RowOrganizedPackage)) - expect_true(isClass(factset.protobuf.stach.v2.table.CellDefinition)) - expect_true(isClass(factset.protobuf.stach.v2.table.ColumnData)) - expect_true(isClass(factset.protobuf.stach.v2.table.ColumnDefinition)) - expect_true(isClass(factset.protobuf.stach.v2.table.DataFormat)) - expect_true(isClass(factset.protobuf.stach.v2.table.HorizontalAlignment)) - expect_true(isClass(factset.protobuf.stach.v2.table.ListOfMetadata)) - expect_true(isClass(factset.protobuf.stach.v2.table.MetadataCollection)) - expect_true(isClass(factset.protobuf.stach.v2.table.MetadataItem)) - expect_true(isClass(factset.protobuf.stach.v2.table.MetadataLocations)) - expect_true(isClass(factset.protobuf.stach.v2.table.Reference)) - expect_true(isClass(factset.protobuf.stach.v2.table.ReferenceType)) - expect_true(isClass(factset.protobuf.stach.v2.table.RowDefinition)) - expect_true(isClass(factset.protobuf.stach.v2.table.Table)) - expect_true(isClass(factset.protobuf.stach.v2.table.TableData)) - expect_true(isClass(factset.protobuf.stach.v2.table.TableDefinition)) - expect_true(isClass(factset.protobuf.stach.v2.table.VerticalAlignment)) -}) \ No newline at end of file diff --git a/r/factset.protobuf.stach.v2/.Rbuildignore b/r/factset.protobuf.stach.v3/.Rbuildignore similarity index 100% rename from r/factset.protobuf.stach.v2/.Rbuildignore rename to r/factset.protobuf.stach.v3/.Rbuildignore diff --git a/r/factset.protobuf.stach.v2/DESCRIPTION b/r/factset.protobuf.stach.v3/DESCRIPTION similarity index 92% rename from r/factset.protobuf.stach.v2/DESCRIPTION rename to r/factset.protobuf.stach.v3/DESCRIPTION index d5a74cc..1ec9971 100644 --- a/r/factset.protobuf.stach.v2/DESCRIPTION +++ b/r/factset.protobuf.stach.v3/DESCRIPTION @@ -1,4 +1,4 @@ -Package: factset.protobuf.stach.v2 +Package: factset.protobuf.stach.v3 Type: Package Title: 'FactSet' 'STACH' Library Version: 1.0.0 @@ -17,4 +17,4 @@ LazyData: true Imports: R6 Depends: RProtoBuf Suggests: testthat -RoxygenNote: 7.0.0 \ No newline at end of file +RoxygenNote: 7.0.0 diff --git a/r/factset.protobuf.stach.v2/Makefile b/r/factset.protobuf.stach.v3/Makefile similarity index 100% rename from r/factset.protobuf.stach.v2/Makefile rename to r/factset.protobuf.stach.v3/Makefile diff --git a/r/factset.protobuf.stach.v2/NAMESPACE b/r/factset.protobuf.stach.v3/NAMESPACE similarity index 100% rename from r/factset.protobuf.stach.v2/NAMESPACE rename to r/factset.protobuf.stach.v3/NAMESPACE diff --git a/r/factset.protobuf.stach.v2/R/zzz.R b/r/factset.protobuf.stach.v3/R/zzz.R similarity index 92% rename from r/factset.protobuf.stach.v2/R/zzz.R rename to r/factset.protobuf.stach.v3/R/zzz.R index 39c99a9..f6fe523 100644 --- a/r/factset.protobuf.stach.v2/R/zzz.R +++ b/r/factset.protobuf.stach.v3/R/zzz.R @@ -1,4 +1,4 @@ .onAttach <- function(libname, pkgname) { - proto_path = system.file("schema", package = "factset.protobuf.stach.v2") + proto_path = system.file("schema", package = "factset.protobuf.stach.v3") readProtoFiles2(protoPath = proto_path,pattern = "\\.proto$", recursive = TRUE ) -} \ No newline at end of file +} diff --git a/r/factset.protobuf.stach.v2/cran-comments.md b/r/factset.protobuf.stach.v3/cran-comments.md similarity index 100% rename from r/factset.protobuf.stach.v2/cran-comments.md rename to r/factset.protobuf.stach.v3/cran-comments.md diff --git a/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Column.proto b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Column.proto new file mode 100644 index 0000000..c517f94 --- /dev/null +++ b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Column.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package factset.protobuf.stach.v3; + +option csharp_namespace = "FactSet.Protobuf.Stach.V3"; +option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3"; +option java_package = "com.factset.protobuf.stach.v3"; +option java_outer_classname = "ColumnProto"; + +import "fds/protobuf/stach/v3/MetadataItem.proto"; + +/* +A set of metadata for a table column. +*/ +message Column { + /* + The type that defines a higher level contextual type. + E.g. 'email', or 'id32'. Maps to a [logical type](https://arrow.apache.org/docs/format/Columnar.html#logical-types) which needs to be specified as the [Arrow Field `type` property](https://arrow.apache.org/docs/format/Columnar.html#schema-message). + Required. + */ + string contextual_type = 1; + + /* + The custom metadata. + Optional. + */ + map custom_metadata = 100; +} diff --git a/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/MetadataItem.proto b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/MetadataItem.proto new file mode 100644 index 0000000..e56f569 --- /dev/null +++ b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/MetadataItem.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package factset.protobuf.stach.v3; + +option csharp_namespace = "FactSet.Protobuf.Stach.V3"; +option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3"; +option java_package = "com.factset.protobuf.stach.v3"; +option java_outer_classname = "MetadataItemProto"; + +import "google/protobuf/struct.proto"; + +/* +A custom metadata item. +*/ +message MetadataItem { + /* + The higher level contextual type. + E.g. 'email', or 'id32'. + Required. + */ + string contextual_type = 1; + + /* + The value. + Required. + */ + google.protobuf.Value value = 2; +} diff --git a/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/RowOrganizedTable.proto b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/RowOrganizedTable.proto new file mode 100644 index 0000000..e7edc58 --- /dev/null +++ b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/RowOrganizedTable.proto @@ -0,0 +1,132 @@ +syntax = "proto3"; +package factset.protobuf.stach.v3; + +option csharp_namespace = "FactSet.Protobuf.Stach.V3"; +option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3"; +option java_package = "com.factset.protobuf.stach.v3"; +option java_outer_classname = "RowOrganizedTableProto"; + +import "fds/protobuf/stach/v3/MetadataItem.proto"; +import "fds/protobuf/stach/v3/Table.proto"; +import "fds/protobuf/stach/v3/Views.proto"; +import "google/protobuf/struct.proto"; + +/* +A row-organized table. +Used for JSON-encoding a table. +*/ +message RowOrganizedTable { + /* + A row-organized column. + */ + message Column { + /* + The name of the column. + Required. + */ + string name = 1; + + /* + Whether the column can contains NULLs or not. + Default is `false`. + Required. + */ + bool forbid_nulls = 2; + + /* + The contextual type. + Required. + */ + string contextual_type = 3; + + /* + The custom metadata. + Optional. + */ + map custom_metadata = 100; + } + + /* + A row-organized header row. + */ + message HeaderRow { + /* + The header row cells. + Required. + */ + repeated HeaderCell cells = 1; + } + + /* + A row-organized header cell. + */ + message HeaderCell { + /* + The column span. + Default is `0`. A zero is treated as a one. + Optional. + */ + uint32 colspan = 1; + + /* + The row span. + Default is `0`. A zero is treated as a one. + Optional. + */ + uint32 rowspan = 2; + + /* + The cell's value. + Optional. + */ + google.protobuf.Value value = 3; + } + + /* + The version of the schema. + Required. + */ + string version = 1; + + /* + The name of the table. + Optional. + */ + string name = 2; + + /* + The columns that define this table. + Required. + */ + repeated Column columns = 3; + + /* + The primary table metadata. + Required. + */ + Table table = 4; + + /* + The multi-level headers table. + Optional. + */ + RowOrganizedTable multi_level_headers_table = 5; + + /* + The views metadata. + Optional. + */ + repeated Views.View views = 6; + + /* + The header rows. + Optional. + */ + repeated HeaderRow header_rows = 7; + + /* + The rows. + Required. + */ + repeated google.protobuf.Struct rows = 8; +} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Table.proto b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Table.proto new file mode 100644 index 0000000..50e3809 --- /dev/null +++ b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Table.proto @@ -0,0 +1,107 @@ +syntax = "proto3"; +package factset.protobuf.stach.v3; + +option csharp_namespace = "FactSet.Protobuf.Stach.V3"; +option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3"; +option java_package = "com.factset.protobuf.stach.v3"; +option java_outer_classname = "TableProto"; + +import "fds/protobuf/stach/v3/MetadataItem.proto"; + +/* +A state of tabular data. +If the tabular data has already been grouped, split, or a collapsed column produced, these properties are required to indicate that. +*/ +message Table { + /* + A result of executing the grouping algorithm. + */ + message GroupResult { + /* + The names of the columns that were grouped by. + Required, unless `Table.groupResult.collapsedColumnResult.name` is specified. + */ + repeated string by = 1; + + /* + The realized collapsed column. + Optional. + */ + CollapsedColumnResult collapsed_column_result = 2; + + /* + The name of the `string` column that contains the row paths. + Required. + */ + string row_path = 3; + + /* + The name of the `boolean` column that indicates if a row is an aggregate row. + Required. + */ + string aggregate_rows = 4; + + /* + The name of the `int32` column that contains the group level override. + Takes precedence over row path length. + Optional. + */ + string level = 5; + } + + /* + A result of the collapsed column algorithm. + */ + message CollapsedColumnResult { + /* + The name of the collapsed column. + The collapsed column is in the data so it is considered realized and therefore needs a name. + Required. + */ + string name = 1; + } + + /* + A result of executing the splitting algorithm. + */ + message SplitResult { + /* + The name of the `string` column in the multi-level headers table that refers to column names in the primary table. + Required. + */ + string multi_level_headers_table_reference = 1; + } + + /* + The array of column names that define the primary key for each row. + If more than one column is specified, it is referred to as a compound primary key. e.g. ['firstName', 'lastName'] the first name + last name makes a full name which uniquely identifies each row. + Required. + */ + repeated string primary_keys = 1; + + /* + The total number of rows in the table. + If the value is `0`, it is assumed that all rows are in the payload. If the value is greater than `0`, and the number of rows in the payload is less than the value, it is assumed that the table in the payload is a partial table. + Default is `0`. + Required if a payload contains partial data. + */ + int32 total_num_rows = 2; + + /* + The result of the grouping algorithm. + Optional. + */ + GroupResult group_result = 3; + + /* + The result of the splitting algorithm. + Optional. + */ + SplitResult split_result = 4; + + /* + The custom metadata. + Optional. + */ + map custom_metadata = 100; +} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/TableView.proto b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/TableView.proto new file mode 100644 index 0000000..0837af6 --- /dev/null +++ b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/TableView.proto @@ -0,0 +1,126 @@ +syntax = "proto3"; +package factset.protobuf.stach.v3; + +option csharp_namespace = "FactSet.Protobuf.Stach.V3"; +option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3"; +option java_package = "com.factset.protobuf.stach.v3"; +option java_outer_classname = "TableViewProto"; + +import "fds/protobuf/stach/v3/MetadataItem.proto"; + +/* +A set of metadata specifying the settings that instruct how to turn tabular data into a rendered table. +*/ +message TableView { + /* + An algorithm that groups tabular data by a set of columns and produces aggregate rows. + */ + message Group { + /* + The names of the columns to group by. + Required. + */ + repeated string by = 1; + + /* + The settings for the algorithm to create a collapsed column. + The rendering layer should collapse the columns specified by `Group.by` or `GroupResult.by` into a collapsed column. + Optional. + */ + CollapsedColumn collapsed_column = 2; + } + + /* + A virtual collapsed column. + */ + message CollapsedColumn { + /* + The alias of the collapsed column. + The collapsed column is *not* in the data so it is considered virtual and therefore needs an alias. A dollar sign ($) prefix, such as "$collapsedColumn", can be used to indicate an alias but is not necessary. + Required. + */ + string alias = 1; + } + + /* + An algorithm that vertically splits tabular data and produces a column for each unique value in the columns that were split over. + */ + message Split { + /* + The alias of the columns generated by the split algorithm. + A dollar sign ($) prefix, such as "$splitColumns", can be used to indicate an alias but is not necessary. + Required. + */ + string alias = 1; + + /* + The names of columns to split by. + Required. + */ + repeated string by = 2; + + /* + The names of columns to include in the multi-level headers table when splitting. + Optional. + */ + repeated string include = 3; + + /* + The names of columns to split over. + Required. + */ + repeated string over = 4; + + /* + The human-readable header values of `over` columns to be applied. + Key is the column name, and value is the human-readable value. + Optional. + */ + map headers = 5; + + /* + Whether to remove empty split columns or not. + Default is `false`. + Optional. + */ + bool remove_empty_split_columns = 6; + } + + /* + The human readable display name for the table. + Optional. + */ + string display_name = 1; + + /* + The names of columns to display, which can include the alias for the collapsed column and the alias for the split columns. + An empty array will display no columns. The order of the column names is the order the columns will be displayed. + Required. + */ + repeated string columns = 2; + + /* + The human-readable header values of columns to be applied. + Key is the column name, and value is the human-readable header value. e.g. `{ 'mcap': 'Market Capitalization' }` + Optional. + */ + map headers = 3; + + /* + The group algorithm to be applied. + Optional. + */ + Group group = 4; + + /* + The split algorithm to be applied. + Optional. + */ + Split split = 5; + + /* + The custom metadata. + Optional. + */ + map custom_metadata = 100; +} \ No newline at end of file diff --git a/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Views.proto b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Views.proto new file mode 100644 index 0000000..de335a8 --- /dev/null +++ b/r/factset.protobuf.stach.v3/inst/schema/fds/protobuf/stach/v3/Views.proto @@ -0,0 +1,50 @@ +syntax = "proto3"; +package factset.protobuf.stach.v3; + +option csharp_namespace = "FactSet.Protobuf.Stach.V3"; +option go_package = "github.com/factset/stachschema-sdks/go/fds/protobuf/stach/v3"; +option java_package = "com.factset.protobuf.stach.v3"; +option java_outer_classname = "ViewsProto"; + +import "fds/protobuf/stach/v3/TableView.proto"; + +/* +A set of a metadata specifying one or more views for rendering a table. +*/ +message Views { + /* + A view for rendering a table. + */ + message View { + /* + The name of the view. + Required. + */ + string name = 1; + + /* + The display name that describes the type of view. + This is used when presenting the user with a list of views that can be rendered. e.g. 'Table', 'Bubble Chart', etc. + Optional. + */ + string display_name = 2; + + /* + The type of view to render the table. + Required. + */ + oneof type { + /* + The instructions to render tabular data into a rendered table. + */ + TableView table = 3; + } + } + + /* + The views. + The first view is considered the default view when rendering the table. + Required. + */ + repeated View views = 1; +} diff --git a/r/factset.protobuf.stach.v2/inst/schema/google/protobuf/struct.proto b/r/factset.protobuf.stach.v3/inst/schema/google/protobuf/struct.proto similarity index 100% rename from r/factset.protobuf.stach.v2/inst/schema/google/protobuf/struct.proto rename to r/factset.protobuf.stach.v3/inst/schema/google/protobuf/struct.proto diff --git a/r/factset.protobuf.stach.v3/tests/testthat.R b/r/factset.protobuf.stach.v3/tests/testthat.R new file mode 100644 index 0000000..da9f0d1 --- /dev/null +++ b/r/factset.protobuf.stach.v3/tests/testthat.R @@ -0,0 +1,5 @@ +library(testthat) +library(R6) +library(factset.protobuf.stach.v3) + +test_check("factset.protobuf.stach.v3") diff --git a/r/factset.protobuf.stach.v3/tests/testthat/test-protobuf-classes.R b/r/factset.protobuf.stach.v3/tests/testthat/test-protobuf-classes.R new file mode 100644 index 0000000..9dbbdc9 --- /dev/null +++ b/r/factset.protobuf.stach.v3/tests/testthat/test-protobuf-classes.R @@ -0,0 +1,22 @@ +context("Check for classes") + +test_that("Existence check for all classes corresponding to each protobuf model", { +# expect_true(isClass(factset.protobuf.stach.v2.Package)) +# expect_true(isClass(factset.protobuf.stach.v2.RowOrganizedPackage)) +# expect_true(isClass(factset.protobuf.stach.v2.table.CellDefinition)) +# expect_true(isClass(factset.protobuf.stach.v2.table.ColumnData)) +# expect_true(isClass(factset.protobuf.stach.v2.table.ColumnDefinition)) +# expect_true(isClass(factset.protobuf.stach.v2.table.DataFormat)) +# expect_true(isClass(factset.protobuf.stach.v2.table.HorizontalAlignment)) +# expect_true(isClass(factset.protobuf.stach.v2.table.ListOfMetadata)) +# expect_true(isClass(factset.protobuf.stach.v2.table.MetadataCollection)) +# expect_true(isClass(factset.protobuf.stach.v2.table.MetadataItem)) +# expect_true(isClass(factset.protobuf.stach.v2.table.MetadataLocations)) +# expect_true(isClass(factset.protobuf.stach.v2.table.Reference)) +# expect_true(isClass(factset.protobuf.stach.v2.table.ReferenceType)) +# expect_true(isClass(factset.protobuf.stach.v2.table.RowDefinition)) +# expect_true(isClass(factset.protobuf.stach.v2.table.Table)) +# expect_true(isClass(factset.protobuf.stach.v2.table.TableData)) +# expect_true(isClass(factset.protobuf.stach.v2.table.TableDefinition)) +# expect_true(isClass(factset.protobuf.stach.v2.table.VerticalAlignment)) +})