Skip to content

Commit a99c3e0

Browse files
authored
[Text Analytics] Expose StringIndextype for all endpoints (Azure#17968)
Expose stringindextype to all endpoints
1 parent e1cbd9a commit a99c3e0

27 files changed

+10130
-9189
lines changed

sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public partial class EntitiesTaskParameters
138138
{
139139
public EntitiesTaskParameters() { }
140140
public string ModelVersion { get { throw null; } set { } }
141+
public Azure.AI.TextAnalytics.StringIndexType StringIndexType { get { throw null; } set { } }
141142
}
142143
public partial class Entity
143144
{
@@ -367,6 +368,7 @@ public partial class PiiTaskParameters
367368
public PiiTaskParameters() { }
368369
public Azure.AI.TextAnalytics.PiiTaskParametersDomain? Domain { get { throw null; } set { } }
369370
public string ModelVersion { get { throw null; } set { } }
371+
public Azure.AI.TextAnalytics.StringIndexType StringIndexType { get { throw null; } set { } }
370372
}
371373
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
372374
public readonly partial struct PiiTaskParametersDomain : System.IEquatable<Azure.AI.TextAnalytics.PiiTaskParametersDomain>
@@ -448,6 +450,25 @@ internal SentimentConfidenceScores() { }
448450
public double Neutral { get { throw null; } }
449451
public double Positive { get { throw null; } }
450452
}
453+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
454+
public readonly partial struct StringIndexType : System.IEquatable<Azure.AI.TextAnalytics.StringIndexType>
455+
{
456+
private readonly object _dummy;
457+
private readonly int _dummyPrimitive;
458+
public StringIndexType(string value) { throw null; }
459+
public static Azure.AI.TextAnalytics.StringIndexType TextElementsV8 { get { throw null; } }
460+
public static Azure.AI.TextAnalytics.StringIndexType UnicodeCodePoint { get { throw null; } }
461+
public static Azure.AI.TextAnalytics.StringIndexType Utf16CodeUnit { get { throw null; } }
462+
public bool Equals(Azure.AI.TextAnalytics.StringIndexType other) { throw null; }
463+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
464+
public override bool Equals(object obj) { throw null; }
465+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
466+
public override int GetHashCode() { throw null; }
467+
public static bool operator ==(Azure.AI.TextAnalytics.StringIndexType left, Azure.AI.TextAnalytics.StringIndexType right) { throw null; }
468+
public static implicit operator Azure.AI.TextAnalytics.StringIndexType (string value) { throw null; }
469+
public static bool operator !=(Azure.AI.TextAnalytics.StringIndexType left, Azure.AI.TextAnalytics.StringIndexType right) { throw null; }
470+
public override string ToString() { throw null; }
471+
}
451472
public partial class TasksStateTasksDetails : Azure.AI.TextAnalytics.TaskState
452473
{
453474
internal TasksStateTasksDetails() { }
@@ -643,6 +664,7 @@ public partial class TextAnalyticsRequestOptions
643664
public TextAnalyticsRequestOptions() { }
644665
public bool IncludeStatistics { get { throw null; } set { } }
645666
public string ModelVersion { get { throw null; } set { } }
667+
public Azure.AI.TextAnalytics.StringIndexType StringIndexType { get { throw null; } set { } }
646668
}
647669
public partial class TextAnalyticsResult
648670
{

sdk/textanalytics/Azure.AI.TextAnalytics/src/EntitiesTaskParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public partial class EntitiesTaskParameters
2020
/// <summary>
2121
/// StringIndexType
2222
/// </summary>
23-
internal StringIndexType? StringIndexType { get; set; }
23+
public StringIndexType StringIndexType { get; set; } = StringIndexType.Utf16CodeUnit;
2424
}
2525
}

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeJobMetadata.Serialization.cs

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeJobMetadata.cs

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeJobState.Serialization.cs

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeJobState.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskParameters.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskParameters.cs

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareJobState.Serialization.cs

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareJobState.cs

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)