Skip to content

Commit

Permalink
feat: [cloudchannel] mark ChannelPartnerGranularity as deprecated and…
Browse files Browse the repository at this point in the history
… offer alternatives (#9807)

* feat: mark ChannelPartnerGranularity as deprecated and offer alternatives

PiperOrigin-RevId: 563530090

Source-Link: googleapis/googleapis@a549fb2

Source-Link: https://github.com/googleapis/googleapis-gen/commit/1815d44adfb5c23929b56f867df45a462b9ab560
Copy-Tag: eyJwIjoiamF2YS1jaGFubmVsLy5Pd2xCb3QueWFtbCIsImgiOiIxODE1ZDQ0YWRmYjVjMjM5MjliNTZmODY3ZGY0NWE0NjJiOWFiNTYwIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 8, 2023
1 parent 1ce4fa6 commit 13e9ee1
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ public com.google.protobuf.Parser<EntitlementGranularity> getParserForType() {
}
}

@java.lang.Deprecated
public interface ChannelPartnerGranularityOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity)
Expand All @@ -745,10 +746,14 @@ public interface ChannelPartnerGranularityOrBuilder
* Applies the repricing configuration at the channel partner level.
* The channel partner value is derived from the resource name. Takes an
* empty json object.
* Deprecated: This is no longer supported. Use
* [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
* instead.
* </pre>
*
* Protobuf type {@code google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity}
*/
@java.lang.Deprecated
public static final class ChannelPartnerGranularity extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity)
Expand Down Expand Up @@ -942,6 +947,9 @@ protected Builder newBuilderForType(
* Applies the repricing configuration at the channel partner level.
* The channel partner value is derived from the resource name. Takes an
* empty json object.
* Deprecated: This is no longer supported. Use
* [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
* instead.
* </pre>
*
* Protobuf type {@code google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity}
Expand Down Expand Up @@ -1185,6 +1193,7 @@ public enum GranularityCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ENTITLEMENT_GRANULARITY(4),
@java.lang.Deprecated
CHANNEL_PARTNER_GRANULARITY(5),
GRANULARITY_NOT_SET(0);
private final int value;
Expand Down Expand Up @@ -1330,16 +1339,21 @@ public boolean hasEntitlementGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
* See google/cloud/channel/v1/repricing.proto;l=139
* @return Whether the channelPartnerGranularity field is set.
*/
@java.lang.Override
@java.lang.Deprecated
public boolean hasChannelPartnerGranularity() {
return granularityCase_ == 5;
}
Expand All @@ -1350,16 +1364,21 @@ public boolean hasChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
* See google/cloud/channel/v1/repricing.proto;l=139
* @return The channelPartnerGranularity.
*/
@java.lang.Override
@java.lang.Deprecated
public com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity
getChannelPartnerGranularity() {
if (granularityCase_ == 5) {
Expand All @@ -1375,14 +1394,17 @@ public boolean hasChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Override
@java.lang.Deprecated
public com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularityOrBuilder
getChannelPartnerGranularityOrBuilder() {
if (granularityCase_ == 5) {
Expand Down Expand Up @@ -2588,16 +2610,21 @@ public Builder clearEntitlementGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is
* deprecated. See google/cloud/channel/v1/repricing.proto;l=139
* @return Whether the channelPartnerGranularity field is set.
*/
@java.lang.Override
@java.lang.Deprecated
public boolean hasChannelPartnerGranularity() {
return granularityCase_ == 5;
}
Expand All @@ -2608,16 +2635,21 @@ public boolean hasChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is
* deprecated. See google/cloud/channel/v1/repricing.proto;l=139
* @return The channelPartnerGranularity.
*/
@java.lang.Override
@java.lang.Deprecated
public com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity
getChannelPartnerGranularity() {
if (channelPartnerGranularityBuilder_ == null) {
Expand All @@ -2642,13 +2674,16 @@ public boolean hasChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Deprecated
public Builder setChannelPartnerGranularity(
com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity value) {
if (channelPartnerGranularityBuilder_ == null) {
Expand All @@ -2670,13 +2705,16 @@ public Builder setChannelPartnerGranularity(
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Deprecated
public Builder setChannelPartnerGranularity(
com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity.Builder
builderForValue) {
Expand All @@ -2696,13 +2734,16 @@ public Builder setChannelPartnerGranularity(
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Deprecated
public Builder mergeChannelPartnerGranularity(
com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity value) {
if (channelPartnerGranularityBuilder_ == null) {
Expand Down Expand Up @@ -2737,13 +2778,16 @@ public Builder mergeChannelPartnerGranularity(
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Deprecated
public Builder clearChannelPartnerGranularity() {
if (channelPartnerGranularityBuilder_ == null) {
if (granularityCase_ == 5) {
Expand All @@ -2767,13 +2811,16 @@ public Builder clearChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Deprecated
public com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity.Builder
getChannelPartnerGranularityBuilder() {
return getChannelPartnerGranularityFieldBuilder().getBuilder();
Expand All @@ -2785,14 +2832,17 @@ public Builder clearChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Override
@java.lang.Deprecated
public com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularityOrBuilder
getChannelPartnerGranularityOrBuilder() {
if ((granularityCase_ == 5) && (channelPartnerGranularityBuilder_ != null)) {
Expand All @@ -2813,11 +2863,13 @@ public Builder clearChannelPartnerGranularity() {
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,20 @@ public interface RepricingConfigOrBuilder
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
* See google/cloud/channel/v1/repricing.proto;l=139
* @return Whether the channelPartnerGranularity field is set.
*/
@java.lang.Deprecated
boolean hasChannelPartnerGranularity();
/**
*
Expand All @@ -128,15 +133,20 @@ public interface RepricingConfigOrBuilder
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
* See google/cloud/channel/v1/repricing.proto;l=139
* @return The channelPartnerGranularity.
*/
@java.lang.Deprecated
com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity
getChannelPartnerGranularity();
/**
Expand All @@ -146,13 +156,16 @@ public interface RepricingConfigOrBuilder
* Applies the repricing configuration at the channel partner level.
* Only
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
* supports this value.
* supports this value. Deprecated: This is no longer supported. Use
* [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
* instead.
* </pre>
*
* <code>
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;
* .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
* </code>
*/
@java.lang.Deprecated
com.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularityOrBuilder
getChannelPartnerGranularityOrBuilder();

Expand Down
Loading

0 comments on commit 13e9ee1

Please sign in to comment.