if (isValidValue(fields()[0], other.productId)) { this.productId = data().deepCopy(fields()[0].schema(), other.productId); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.portfolioId)) { this.portfolioId = data().deepCopy(fields()[1].schema(), other.portfolioId); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.brand)) { this.brand = data().deepCopy(fields()[2].schema(), other.brand); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.assetProtectionLevel)) { this.assetProtectionLevel = data().deepCopy(fields()[3].schema(), other.assetProtectionLevel); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.componentId)) { this.componentId = data().deepCopy(fields()[4].schema(), other.componentId); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.hint)) { this.hint = data().deepCopy(fields()[5].schema(), other.hint); fieldSetFlags()[5] = true;
if (isValidValue(fields()[0], other.productId)) { this.productId = data().deepCopy(fields()[0].schema(), other.productId); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.portfolioId)) { this.portfolioId = data().deepCopy(fields()[1].schema(), other.portfolioId); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.brand)) { this.brand = data().deepCopy(fields()[2].schema(), other.brand); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.assetProtectionLevel)) { this.assetProtectionLevel = data().deepCopy(fields()[3].schema(), other.assetProtectionLevel); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.componentId)) { this.componentId = data().deepCopy(fields()[4].schema(), other.componentId); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.hint)) { this.hint = data().deepCopy(fields()[5].schema(), other.hint); fieldSetFlags()[5] = true;
@Override @SuppressWarnings("unchecked") public Tags build() { try { Tags record = new Tags(); record.productId = fieldSetFlags()[0] ? this.productId : (java.lang.Integer) defaultValue(fields()[0]); record.portfolioId = fieldSetFlags()[1] ? this.portfolioId : (java.lang.Integer) defaultValue(fields()[1]); record.brand = fieldSetFlags()[2] ? this.brand : (java.lang.String) defaultValue(fields()[2]); record.assetProtectionLevel = fieldSetFlags()[3] ? this.assetProtectionLevel : (java.lang.String) defaultValue(fields()[3]); record.componentId = fieldSetFlags()[4] ? this.componentId : (java.lang.String) defaultValue(fields()[4]); record.hint = fieldSetFlags()[5] ? this.hint : (java.lang.String) defaultValue(fields()[5]); return record; } catch (java.lang.Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** * Sets the value of the 'hint' field. * * Hint for Stream Registry to choose a cluster. * Example: primary, other, highvolume. * @param value The value of 'hint'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder setHint(java.lang.String value) { validate(fields()[5], value); this.hint = value; fieldSetFlags()[5] = true; return this; }
/** * Sets the value of the 'brand' field. * * brand: brand name. * Example: HomeAway * @param value The value of 'brand'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder setBrand(java.lang.String value) { validate(fields()[2], value); this.brand = value; fieldSetFlags()[2] = true; return this; }
/** * Sets the value of the 'componentId' field. * * Dominion ComponentId. * Example - "componentId": "fedc1234-000a-4888-b555-1111aaaa87cc" * @param value The value of 'componentId'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder setComponentId(java.lang.String value) { validate(fields()[4], value); this.componentId = value; fieldSetFlags()[4] = true; return this; }
/** * Sets the value of the 'portfolioId' field. * * PortfolioId * @param value The value of 'portfolioId'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder setPortfolioId(java.lang.Integer value) { validate(fields()[1], value); this.portfolioId = value; fieldSetFlags()[1] = true; return this; }
/** * Sets the value of the 'productId' field. * * ProductId * @param value The value of 'productId'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder setProductId(int value) { validate(fields()[0], value); this.productId = value; fieldSetFlags()[0] = true; return this; }
/** * Sets the value of the 'assetProtectionLevel' field. * * assetProtectionLevel * @param value The value of 'assetProtectionLevel'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder setAssetProtectionLevel(java.lang.String value) { validate(fields()[3], value); this.assetProtectionLevel = value; fieldSetFlags()[3] = true; return this; }