@@ -43,6 +43,7 @@ private Offer() {
4343 name_ = "" ;
4444 priceByResources_ = java .util .Collections .emptyList ();
4545 parameterDefinitions_ = java .util .Collections .emptyList ();
46+ dealCode_ = "" ;
4647 }
4748
4849 @ java .lang .Override
@@ -546,6 +547,55 @@ public com.google.cloud.channel.v1.ParameterDefinitionOrBuilder getParameterDefi
546547 return parameterDefinitions_ .get (index );
547548 }
548549
550+ public static final int DEAL_CODE_FIELD_NUMBER = 12 ;
551+ private volatile java .lang .Object dealCode_ ;
552+ /**
553+ *
554+ *
555+ * <pre>
556+ * The deal code of the offer to get a special promotion or discount.
557+ * </pre>
558+ *
559+ * <code>string deal_code = 12;</code>
560+ *
561+ * @return The dealCode.
562+ */
563+ @ java .lang .Override
564+ public java .lang .String getDealCode () {
565+ java .lang .Object ref = dealCode_ ;
566+ if (ref instanceof java .lang .String ) {
567+ return (java .lang .String ) ref ;
568+ } else {
569+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
570+ java .lang .String s = bs .toStringUtf8 ();
571+ dealCode_ = s ;
572+ return s ;
573+ }
574+ }
575+ /**
576+ *
577+ *
578+ * <pre>
579+ * The deal code of the offer to get a special promotion or discount.
580+ * </pre>
581+ *
582+ * <code>string deal_code = 12;</code>
583+ *
584+ * @return The bytes for dealCode.
585+ */
586+ @ java .lang .Override
587+ public com .google .protobuf .ByteString getDealCodeBytes () {
588+ java .lang .Object ref = dealCode_ ;
589+ if (ref instanceof java .lang .String ) {
590+ com .google .protobuf .ByteString b =
591+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
592+ dealCode_ = b ;
593+ return b ;
594+ } else {
595+ return (com .google .protobuf .ByteString ) ref ;
596+ }
597+ }
598+
549599 private byte memoizedIsInitialized = -1 ;
550600
551601 @ java .lang .Override
@@ -587,6 +637,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
587637 for (int i = 0 ; i < parameterDefinitions_ .size (); i ++) {
588638 output .writeMessage (9 , parameterDefinitions_ .get (i ));
589639 }
640+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (dealCode_ )) {
641+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 12 , dealCode_ );
642+ }
590643 getUnknownFields ().writeTo (output );
591644 }
592645
@@ -624,6 +677,9 @@ public int getSerializedSize() {
624677 size +=
625678 com .google .protobuf .CodedOutputStream .computeMessageSize (9 , parameterDefinitions_ .get (i ));
626679 }
680+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (dealCode_ )) {
681+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (12 , dealCode_ );
682+ }
627683 size += getUnknownFields ().getSerializedSize ();
628684 memoizedSize = size ;
629685 return size ;
@@ -666,6 +722,7 @@ public boolean equals(final java.lang.Object obj) {
666722 if (!getEndTime ().equals (other .getEndTime ())) return false ;
667723 }
668724 if (!getParameterDefinitionsList ().equals (other .getParameterDefinitionsList ())) return false ;
725+ if (!getDealCode ().equals (other .getDealCode ())) return false ;
669726 if (!getUnknownFields ().equals (other .getUnknownFields ())) return false ;
670727 return true ;
671728 }
@@ -711,6 +768,8 @@ public int hashCode() {
711768 hash = (37 * hash ) + PARAMETER_DEFINITIONS_FIELD_NUMBER ;
712769 hash = (53 * hash ) + getParameterDefinitionsList ().hashCode ();
713770 }
771+ hash = (37 * hash ) + DEAL_CODE_FIELD_NUMBER ;
772+ hash = (53 * hash ) + getDealCode ().hashCode ();
714773 hash = (29 * hash ) + getUnknownFields ().hashCode ();
715774 memoizedHashCode = hash ;
716775 return hash ;
@@ -902,6 +961,8 @@ public Builder clear() {
902961 parameterDefinitionsBuilder_ .clear ();
903962 }
904963 bitField0_ = (bitField0_ & ~0x00000002 );
964+ dealCode_ = "" ;
965+
905966 return this ;
906967 }
907968
@@ -978,6 +1039,7 @@ public com.google.cloud.channel.v1.Offer buildPartial() {
9781039 } else {
9791040 result .parameterDefinitions_ = parameterDefinitionsBuilder_ .build ();
9801041 }
1042+ result .dealCode_ = dealCode_ ;
9811043 onBuilt ();
9821044 return result ;
9831045 }
@@ -1103,6 +1165,10 @@ public Builder mergeFrom(com.google.cloud.channel.v1.Offer other) {
11031165 }
11041166 }
11051167 }
1168+ if (!other .getDealCode ().isEmpty ()) {
1169+ dealCode_ = other .dealCode_ ;
1170+ onChanged ();
1171+ }
11061172 this .mergeUnknownFields (other .getUnknownFields ());
11071173 onChanged ();
11081174 return this ;
@@ -1198,6 +1264,12 @@ public Builder mergeFrom(
11981264 }
11991265 break ;
12001266 } // case 74
1267+ case 98 :
1268+ {
1269+ dealCode_ = input .readStringRequireUtf8 ();
1270+
1271+ break ;
1272+ } // case 98
12011273 default :
12021274 {
12031275 if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -3144,6 +3216,112 @@ public com.google.cloud.channel.v1.ParameterDefinition.Builder addParameterDefin
31443216 return parameterDefinitionsBuilder_ ;
31453217 }
31463218
3219+ private java .lang .Object dealCode_ = "" ;
3220+ /**
3221+ *
3222+ *
3223+ * <pre>
3224+ * The deal code of the offer to get a special promotion or discount.
3225+ * </pre>
3226+ *
3227+ * <code>string deal_code = 12;</code>
3228+ *
3229+ * @return The dealCode.
3230+ */
3231+ public java .lang .String getDealCode () {
3232+ java .lang .Object ref = dealCode_ ;
3233+ if (!(ref instanceof java .lang .String )) {
3234+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
3235+ java .lang .String s = bs .toStringUtf8 ();
3236+ dealCode_ = s ;
3237+ return s ;
3238+ } else {
3239+ return (java .lang .String ) ref ;
3240+ }
3241+ }
3242+ /**
3243+ *
3244+ *
3245+ * <pre>
3246+ * The deal code of the offer to get a special promotion or discount.
3247+ * </pre>
3248+ *
3249+ * <code>string deal_code = 12;</code>
3250+ *
3251+ * @return The bytes for dealCode.
3252+ */
3253+ public com .google .protobuf .ByteString getDealCodeBytes () {
3254+ java .lang .Object ref = dealCode_ ;
3255+ if (ref instanceof String ) {
3256+ com .google .protobuf .ByteString b =
3257+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
3258+ dealCode_ = b ;
3259+ return b ;
3260+ } else {
3261+ return (com .google .protobuf .ByteString ) ref ;
3262+ }
3263+ }
3264+ /**
3265+ *
3266+ *
3267+ * <pre>
3268+ * The deal code of the offer to get a special promotion or discount.
3269+ * </pre>
3270+ *
3271+ * <code>string deal_code = 12;</code>
3272+ *
3273+ * @param value The dealCode to set.
3274+ * @return This builder for chaining.
3275+ */
3276+ public Builder setDealCode (java .lang .String value ) {
3277+ if (value == null ) {
3278+ throw new NullPointerException ();
3279+ }
3280+
3281+ dealCode_ = value ;
3282+ onChanged ();
3283+ return this ;
3284+ }
3285+ /**
3286+ *
3287+ *
3288+ * <pre>
3289+ * The deal code of the offer to get a special promotion or discount.
3290+ * </pre>
3291+ *
3292+ * <code>string deal_code = 12;</code>
3293+ *
3294+ * @return This builder for chaining.
3295+ */
3296+ public Builder clearDealCode () {
3297+
3298+ dealCode_ = getDefaultInstance ().getDealCode ();
3299+ onChanged ();
3300+ return this ;
3301+ }
3302+ /**
3303+ *
3304+ *
3305+ * <pre>
3306+ * The deal code of the offer to get a special promotion or discount.
3307+ * </pre>
3308+ *
3309+ * <code>string deal_code = 12;</code>
3310+ *
3311+ * @param value The bytes for dealCode to set.
3312+ * @return This builder for chaining.
3313+ */
3314+ public Builder setDealCodeBytes (com .google .protobuf .ByteString value ) {
3315+ if (value == null ) {
3316+ throw new NullPointerException ();
3317+ }
3318+ checkByteStringIsUtf8 (value );
3319+
3320+ dealCode_ = value ;
3321+ onChanged ();
3322+ return this ;
3323+ }
3324+
31473325 @ java .lang .Override
31483326 public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
31493327 return super .setUnknownFields (unknownFields );
0 commit comments