Skip to content

Commit f2fdc8f

Browse files
yoshi-automationjskeet
authored andcommitted
docs: Documentation update BREAKING CHANGE: TransferableSkus field deprecation. Okay to make this change since no clients are using the libraries that were released just last week. The fields were supposed to be deprecated but missed. We have communicated to clients about this change.
PiperOrigin-RevId: 358862009 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon Feb 22 11:20:45 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 2916ac4a35c49441baa5dc8c7e2ad5a1205ed2ca Source-Link: googleapis/googleapis@2916ac4
1 parent 8b42050 commit f2fdc8f

7 files changed

Lines changed: 1588 additions & 2127 deletions

File tree

apis/Google.Cloud.Channel.V1/Google.Cloud.Channel.V1.Snippets/CloudChannelServiceClientSnippets.g.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,6 @@ public void CreateChannelPartnerLinkRequestObject()
16371637
{
16381638
Parent = "",
16391639
ChannelPartnerLink = new ChannelPartnerLink(),
1640-
Domain = "",
16411640
};
16421641
// Make the request
16431642
ChannelPartnerLink response = cloudChannelServiceClient.CreateChannelPartnerLink(request);
@@ -1656,7 +1655,6 @@ public async Task CreateChannelPartnerLinkRequestObjectAsync()
16561655
{
16571656
Parent = "",
16581657
ChannelPartnerLink = new ChannelPartnerLink(),
1659-
Domain = "",
16601658
};
16611659
// Make the request
16621660
ChannelPartnerLink response = await cloudChannelServiceClient.CreateChannelPartnerLinkAsync(request);

apis/Google.Cloud.Channel.V1/Google.Cloud.Channel.V1.Tests/CloudChannelServiceClientTest.g.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ public void CreateChannelPartnerLinkRequestObject()
639639
{
640640
Parent = "parent7858e4d0",
641641
ChannelPartnerLink = new ChannelPartnerLink(),
642-
Domain = "domaine8825fad",
643642
};
644643
ChannelPartnerLink expectedResponse = new ChannelPartnerLink
645644
{
@@ -668,7 +667,6 @@ public void CreateChannelPartnerLinkRequestObject()
668667
{
669668
Parent = "parent7858e4d0",
670669
ChannelPartnerLink = new ChannelPartnerLink(),
671-
Domain = "domaine8825fad",
672670
};
673671
ChannelPartnerLink expectedResponse = new ChannelPartnerLink
674672
{

apis/Google.Cloud.Channel.V1/Google.Cloud.Channel.V1/CloudChannelServiceClient.g.cs

Lines changed: 655 additions & 851 deletions
Large diffs are not rendered by default.

apis/Google.Cloud.Channel.V1/Google.Cloud.Channel.V1/Entitlements.cs

Lines changed: 13 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,18 @@ static EntitlementsReflection() {
7373
"ZW50UGxhbhI2Cg1wYXltZW50X2N5Y2xlGAYgASgLMh8uZ29vZ2xlLmNsb3Vk",
7474
"LmNoYW5uZWwudjEuUGVyaW9kIkwKDVRyaWFsU2V0dGluZ3MSDQoFdHJpYWwY",
7575
"ASABKAgSLAoIZW5kX3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt",
76-
"ZXN0YW1wIvkBCg9UcmFuc2ZlcmFibGVTa3USMQoNaXNfY29tbWl0bWVudBgG",
77-
"IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUSPAoYY29tbWl0bWVu",
78-
"dF9lbmRfdGltZXN0YW1wGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz",
79-
"dGFtcBJKChR0cmFuc2Zlcl9lbGlnaWJpbGl0eRgJIAEoCzIsLmdvb2dsZS5j",
80-
"bG91ZC5jaGFubmVsLnYxLlRyYW5zZmVyRWxpZ2liaWxpdHkSKQoDc2t1GAsg",
81-
"ASgLMhwuZ29vZ2xlLmNsb3VkLmNoYW5uZWwudjEuU2t1IvkBChNUcmFuc2Zl",
82-
"ckVsaWdpYmlsaXR5EhMKC2lzX2VsaWdpYmxlGAEgASgIEhMKC2Rlc2NyaXB0",
83-
"aW9uGAIgASgJElEKFGluZWxpZ2liaWxpdHlfcmVhc29uGAMgASgOMjMuZ29v",
84-
"Z2xlLmNsb3Vk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86+
"Pmdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvY2xvdWQv",
87+
"Y2hhbm5lbC92MTtjaGFubmVsYgZwcm90bzM="));
9188
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
9289
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Channel.V1.CommonReflection.Descriptor, global::Google.Cloud.Channel.V1.OffersReflection.Descriptor, global::Google.Cloud.Channel.V1.ProductsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, },
9390
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
@@ -98,7 +95,7 @@ static EntitlementsReflection() {
9895
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Channel.V1.CommitmentSettings), global::Google.Cloud.Channel.V1.CommitmentSettings.Parser, new[]{ "StartTime", "EndTime", "RenewalSettings" }, null, null, null, null),
9996
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Channel.V1.RenewalSettings), global::Google.Cloud.Channel.V1.RenewalSettings.Parser, new[]{ "EnableRenewal", "ResizeUnitCount", "PaymentPlan", "PaymentCycle" }, null, null, null, null),
10097
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Channel.V1.TrialSettings), global::Google.Cloud.Channel.V1.TrialSettings.Parser, new[]{ "Trial", "EndTime" }, null, null, null, null),
101-
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Channel.V1.TransferableSku), global::Google.Cloud.Channel.V1.TransferableSku.Parser, new[]{ "IsCommitment", "CommitmentEndTimestamp", "TransferEligibility", "Sku" }, null, null, null, null),
98+
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Channel.V1.TransferableSku), global::Google.Cloud.Channel.V1.TransferableSku.Parser, new[]{ "TransferEligibility", "Sku" }, null, null, null, null),
10299
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Channel.V1.TransferEligibility), global::Google.Cloud.Channel.V1.TransferEligibility.Parser, new[]{ "IsEligible", "Description", "IneligibilityReason" }, null, new[]{ typeof(global::Google.Cloud.Channel.V1.TransferEligibility.Types.Reason) }, null, null)
103100
}));
104101
}
@@ -2368,8 +2365,6 @@ public TransferableSku() {
23682365

23692366
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23702367
public TransferableSku(TransferableSku other) : this() {
2371-
IsCommitment = other.IsCommitment;
2372-
commitmentEndTimestamp_ = other.commitmentEndTimestamp_ != null ? other.commitmentEndTimestamp_.Clone() : null;
23732368
transferEligibility_ = other.transferEligibility_ != null ? other.transferEligibility_.Clone() : null;
23742369
sku_ = other.sku_ != null ? other.sku_.Clone() : null;
23752370
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
@@ -2380,36 +2375,6 @@ public TransferableSku Clone() {
23802375
return new TransferableSku(this);
23812376
}
23822377

2383-
/// <summary>Field number for the "is_commitment" field.</summary>
2384-
public const int IsCommitmentFieldNumber = 6;
2385-
private static readonly pb::FieldCodec<bool?> _single_isCommitment_codec = pb::FieldCodec.ForStructWrapper<bool>(50);
2386-
private bool? isCommitment_;
2387-
/// <summary>
2388-
/// Whether a transferable SKU is commitment-based or not.
2389-
/// </summary>
2390-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2391-
public bool? IsCommitment {
2392-
get { return isCommitment_; }
2393-
set {
2394-
isCommitment_ = value;
2395-
}
2396-
}
2397-
2398-
2399-
/// <summary>Field number for the "commitment_end_timestamp" field.</summary>
2400-
public const int CommitmentEndTimestampFieldNumber = 7;
2401-
private global::Google.Protobuf.WellKnownTypes.Timestamp commitmentEndTimestamp_;
2402-
/// <summary>
2403-
/// Commitment end timestamp.
2404-
/// </summary>
2405-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2406-
public global::Google.Protobuf.WellKnownTypes.Timestamp CommitmentEndTimestamp {
2407-
get { return commitmentEndTimestamp_; }
2408-
set {
2409-
commitmentEndTimestamp_ = value;
2410-
}
2411-
}
2412-
24132378
/// <summary>Field number for the "transfer_eligibility" field.</summary>
24142379
public const int TransferEligibilityFieldNumber = 9;
24152380
private global::Google.Cloud.Channel.V1.TransferEligibility transferEligibility_;
@@ -2451,8 +2416,6 @@ public bool Equals(TransferableSku other) {
24512416
if (ReferenceEquals(other, this)) {
24522417
return true;
24532418
}
2454-
if (IsCommitment != other.IsCommitment) return false;
2455-
if (!object.Equals(CommitmentEndTimestamp, other.CommitmentEndTimestamp)) return false;
24562419
if (!object.Equals(TransferEligibility, other.TransferEligibility)) return false;
24572420
if (!object.Equals(Sku, other.Sku)) return false;
24582421
return Equals(_unknownFields, other._unknownFields);
@@ -2461,8 +2424,6 @@ public bool Equals(TransferableSku other) {
24612424
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24622425
public override int GetHashCode() {
24632426
int hash = 1;
2464-
if (isCommitment_ != null) hash ^= IsCommitment.GetHashCode();
2465-
if (commitmentEndTimestamp_ != null) hash ^= CommitmentEndTimestamp.GetHashCode();
24662427
if (transferEligibility_ != null) hash ^= TransferEligibility.GetHashCode();
24672428
if (sku_ != null) hash ^= Sku.GetHashCode();
24682429
if (_unknownFields != null) {
@@ -2481,13 +2442,6 @@ public void WriteTo(pb::CodedOutputStream output) {
24812442
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24822443
output.WriteRawMessage(this);
24832444
#else
2484-
if (isCommitment_ != null) {
2485-
_single_isCommitment_codec.WriteTagAndValue(output, IsCommitment);
2486-
}
2487-
if (commitmentEndTimestamp_ != null) {
2488-
output.WriteRawTag(58);
2489-
output.WriteMessage(CommitmentEndTimestamp);
2490-
}
24912445
if (transferEligibility_ != null) {
24922446
output.WriteRawTag(74);
24932447
output.WriteMessage(TransferEligibility);
@@ -2505,13 +2459,6 @@ public void WriteTo(pb::CodedOutputStream output) {
25052459
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25062460
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25072461
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2508-
if (isCommitment_ != null) {
2509-
_single_isCommitment_codec.WriteTagAndValue(ref output, IsCommitment);
2510-
}
2511-
if (commitmentEndTimestamp_ != null) {
2512-
output.WriteRawTag(58);
2513-
output.WriteMessage(CommitmentEndTimestamp);
2514-
}
25152462
if (transferEligibility_ != null) {
25162463
output.WriteRawTag(74);
25172464
output.WriteMessage(TransferEligibility);
@@ -2529,12 +2476,6 @@ public void WriteTo(pb::CodedOutputStream output) {
25292476
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25302477
public int CalculateSize() {
25312478
int size = 0;
2532-
if (isCommitment_ != null) {
2533-
size += _single_isCommitment_codec.CalculateSizeWithTag(IsCommitment);
2534-
}
2535-
if (commitmentEndTimestamp_ != null) {
2536-
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommitmentEndTimestamp);
2537-
}
25382479
if (transferEligibility_ != null) {
25392480
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferEligibility);
25402481
}
@@ -2552,17 +2493,6 @@ public void MergeFrom(TransferableSku other) {
25522493
if (other == null) {
25532494
return;
25542495
}
2555-
if (other.isCommitment_ != null) {
2556-
if (isCommitment_ == null || other.IsCommitment != false) {
2557-
IsCommitment = other.IsCommitment;
2558-
}
2559-
}
2560-
if (other.commitmentEndTimestamp_ != null) {
2561-
if (commitmentEndTimestamp_ == null) {
2562-
CommitmentEndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2563-
}
2564-
CommitmentEndTimestamp.MergeFrom(other.CommitmentEndTimestamp);
2565-
}
25662496
if (other.transferEligibility_ != null) {
25672497
if (transferEligibility_ == null) {
25682498
TransferEligibility = new global::Google.Cloud.Channel.V1.TransferEligibility();
@@ -2589,20 +2519,6 @@ public void MergeFrom(pb::CodedInputStream input) {
25892519
default:
25902520
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25912521
break;
2592-
case 50: {
2593-
bool? value = _single_isCommitment_codec.Read(input);
2594-
if (isCommitment_ == null || value != false) {
2595-
IsCommitment = value;
2596-
}
2597-
break;
2598-
}
2599-
case 58: {
2600-
if (commitmentEndTimestamp_ == null) {
2601-
CommitmentEndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2602-
}
2603-
input.ReadMessage(CommitmentEndTimestamp);
2604-
break;
2605-
}
26062522
case 74: {
26072523
if (transferEligibility_ == null) {
26082524
TransferEligibility = new global::Google.Cloud.Channel.V1.TransferEligibility();
@@ -2631,20 +2547,6 @@ public void MergeFrom(pb::CodedInputStream input) {
26312547
default:
26322548
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
26332549
break;
2634-
case 50: {
2635-
bool? value = _single_isCommitment_codec.Read(ref input);
2636-
if (isCommitment_ == null || value != false) {
2637-
IsCommitment = value;
2638-
}
2639-
break;
2640-
}
2641-
case 58: {
2642-
if (commitmentEndTimestamp_ == null) {
2643-
CommitmentEndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2644-
}
2645-
input.ReadMessage(CommitmentEndTimestamp);
2646-
break;
2647-
}
26482550
case 74: {
26492551
if (transferEligibility_ == null) {
26502552
TransferEligibility = new global::Google.Cloud.Channel.V1.TransferEligibility();

0 commit comments

Comments
 (0)