Skip to content

Commit

Permalink
fix: Reintroduce deprecated field/enum for backward compatibility doc…
Browse files Browse the repository at this point in the history
…s: Use absolute link targets in comments

The deprecated elements are still deprecated and should not be used; they're solely being reintroduced to avoid breaking changes in client libraries.

PiperOrigin-RevId: 402864419

Source-Author: Google APIs <noreply@google.com>
Source-Date: Wed Oct 13 10:25:17 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 4a5dad74731697afdc82fc82ea0ef382218896c0
Source-Link: googleapis/googleapis@4a5dad7
  • Loading branch information
yoshi-automation authored and jskeet committed Oct 13, 2021
1 parent 0c9b419 commit 556147f
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ public void GetNotificationChannelDescriptorRequestObject()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -73,6 +79,12 @@ public void GetNotificationChannelDescriptorRequestObject()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -102,6 +114,12 @@ public void GetNotificationChannelDescriptor()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -129,6 +147,12 @@ public void GetNotificationChannelDescriptor()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -158,6 +182,12 @@ public void GetNotificationChannelDescriptorResourceNames1()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -185,6 +215,12 @@ public void GetNotificationChannelDescriptorResourceNames1()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -214,6 +250,12 @@ public void GetNotificationChannelDescriptorResourceNames2()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down Expand Up @@ -241,6 +283,12 @@ public void GetNotificationChannelDescriptorResourceNames2()
{
new ga::LabelDescriptor(),
},
#pragma warning disable CS0612
SupportedTiers =
#pragma warning restore CS0612
{
ServiceTier.Premium,
},
NotificationChannelDescriptorName = NotificationChannelDescriptorName.FromProjectChannelDescriptor("[PROJECT]", "[CHANNEL_DESCRIPTOR]"),
LaunchStage = ga::LaunchStage.Unspecified,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2681,8 +2681,8 @@ public sealed partial class LogMatch : pb::IMessage<LogMatch>
private string filter_ = "";
/// <summary>
/// Required. A logs-based filter. See [Advanced Logs
/// Queries](/logging/docs/view/advanced-queries) for how this filter
/// should be constructed.
/// Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
/// for how this filter should be constructed.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Filter {
Expand All @@ -2707,7 +2707,7 @@ public sealed partial class LogMatch : pb::IMessage<LogMatch>
/// condition.
///
/// Please see [the documentation on logs-based metric
/// `valueExtractor`s](/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
/// `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
/// for syntax and examples.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,17 @@ public static partial class CommonReflection {
"VHlwZRIaChZDT01QQVJJU09OX1VOU1BFQ0lGSUVEEAASEQoNQ09NUEFSSVNP",
"Tl9HVBABEhEKDUNPTVBBUklTT05fR0UQAhIRCg1DT01QQVJJU09OX0xUEAMS",
"EQoNQ09NUEFSSVNPTl9MRRAEEhEKDUNPTVBBUklTT05fRVEQBRIRCg1DT01Q",
"QVJJU09OX05FEAZCwwEKGGNvbS5nb29nbGUubW9uaXRvcmluZy52M0ILQ29t",
"bW9uUHJvdG9QAVo+Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl",
"YXBpcy9tb25pdG9yaW5nL3YzO21vbml0b3JpbmeqAhpHb29nbGUuQ2xvdWQu",
"TW9uaXRvcmluZy5WM8oCGkdvb2dsZVxDbG91ZFxNb25pdG9yaW5nXFYz6gId",
"R29vZ2xlOjpDbG91ZDo6TW9uaXRvcmluZzo6VjNiBnByb3RvMw=="));
"QVJJU09OX05FEAYqYQoLU2VydmljZVRpZXISHAoYU0VSVklDRV9USUVSX1VO",
"U1BFQ0lGSUVEEAASFgoSU0VSVklDRV9USUVSX0JBU0lDEAESGAoUU0VSVklD",
"RV9USUVSX1BSRU1JVU0QAhoCGAFCwwEKGGNvbS5nb29nbGUubW9uaXRvcmlu",
"Zy52M0ILQ29tbW9uUHJvdG9QAVo+Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv",
"dG8vZ29vZ2xlYXBpcy9tb25pdG9yaW5nL3YzO21vbml0b3JpbmeqAhpHb29n",
"bGUuQ2xvdWQuTW9uaXRvcmluZy5WM8oCGkdvb2dsZVxDbG91ZFxNb25pdG9y",
"aW5nXFYz6gIdR29vZ2xlOjpDbG91ZDo6TW9uaXRvcmluZzo6VjNiBnByb3Rv",
"Mw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.DistributionReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Monitoring.V3.ComparisonType), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Monitoring.V3.ComparisonType), typeof(global::Google.Cloud.Monitoring.V3.ServiceTier), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Monitoring.V3.TypedValue), global::Google.Cloud.Monitoring.V3.TypedValue.Parser, new[]{ "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue" }, new[]{ "Value" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Monitoring.V3.TimeInterval), global::Google.Cloud.Monitoring.V3.TimeInterval.Parser, new[]{ "EndTime", "StartTime" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Monitoring.V3.Aggregation), global::Google.Cloud.Monitoring.V3.Aggregation.Parser, new[]{ "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields" }, null, new[]{ typeof(global::Google.Cloud.Monitoring.V3.Aggregation.Types.Aligner), typeof(global::Google.Cloud.Monitoring.V3.Aggregation.Types.Reducer) }, null, null)
Expand Down Expand Up @@ -110,6 +113,36 @@ public enum ComparisonType {
[pbr::OriginalName("COMPARISON_NE")] ComparisonNe = 6,
}

/// <summary>
/// The tier of service for a Workspace. Please see the
/// [service tiers
/// documentation](https://cloud.google.com/monitoring/workspaces/tiers) for more
/// details.
/// </summary>
public enum ServiceTier {
/// <summary>
/// An invalid sentinel value, used to indicate that a tier has not
/// been provided explicitly.
/// </summary>
[pbr::OriginalName("SERVICE_TIER_UNSPECIFIED")] Unspecified = 0,
/// <summary>
/// The Stackdriver Basic tier, a free tier of service that provides basic
/// features, a moderate allotment of logs, and access to built-in metrics.
/// A number of features are not available in this tier. For more details,
/// see [the service tiers
/// documentation](https://cloud.google.com/monitoring/workspaces/tiers).
/// </summary>
[pbr::OriginalName("SERVICE_TIER_BASIC")] Basic = 1,
/// <summary>
/// The Stackdriver Premium tier, a higher, more expensive tier of service
/// that provides access to all Stackdriver features, lets you use Stackdriver
/// with AWS accounts, and has a larger allotments for logs and metrics. For
/// more details, see [the service tiers
/// documentation](https://cloud.google.com/monitoring/workspaces/tiers).
/// </summary>
[pbr::OriginalName("SERVICE_TIER_PREMIUM")] Premium = 2,
}

#endregion

#region Messages
Expand Down
Loading

0 comments on commit 556147f

Please sign in to comment.