if (isValidValue(fields()[0], other.productId)) { this.productId = data().deepCopy(fields()[0].schema(), other.productId); fieldSetFlags()[0] = true; fieldSetFlags()[1] = true; fieldSetFlags()[2] = true; fieldSetFlags()[3] = true; fieldSetFlags()[4] = true; 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 '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 '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; }
/** * Checks whether the 'hint' field has been set. * * Hint for Stream Registry to choose a cluster. * Example: primary, other, highvolume. * @return True if the 'hint' field has been set, false otherwise. */ public boolean hasHint() { return fieldSetFlags()[5]; }
/** * Clears the value of the 'componentId' field. * * Dominion ComponentId. * Example - "componentId": "fedc1234-000a-4888-b555-1111aaaa87cc" * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder clearComponentId() { componentId = null; fieldSetFlags()[4] = false; return this; }
/** * Checks whether the 'componentId' field has been set. * * Dominion ComponentId. * Example - "componentId": "fedc1234-000a-4888-b555-1111aaaa87cc" * @return True if the 'componentId' field has been set, false otherwise. */ public boolean hasComponentId() { return fieldSetFlags()[4]; }
/** * Clears the value of the 'portfolioId' field. * * PortfolioId * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder clearPortfolioId() { portfolioId = null; fieldSetFlags()[1] = false; 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; }
/** * Clears the value of the 'hint' field. * * Hint for Stream Registry to choose a cluster. * Example: primary, other, highvolume. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder clearHint() { hint = null; fieldSetFlags()[5] = false; return this; }
/** * Clears the value of the 'assetProtectionLevel' field. * * assetProtectionLevel * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder clearAssetProtectionLevel() { assetProtectionLevel = null; fieldSetFlags()[3] = false; return this; }
/** * Checks whether the 'assetProtectionLevel' field has been set. * * assetProtectionLevel * @return True if the 'assetProtectionLevel' field has been set, false otherwise. */ public boolean hasAssetProtectionLevel() { return fieldSetFlags()[3]; }
/** * Checks whether the 'portfolioId' field has been set. * * PortfolioId * @return True if the 'portfolioId' field has been set, false otherwise. */ public boolean hasPortfolioId() { return fieldSetFlags()[1]; }
/** * Checks whether the 'productId' field has been set. * * ProductId * @return True if the 'productId' field has been set, false otherwise. */ public boolean hasProductId() { return fieldSetFlags()[0]; }
/** * Clears the value of the 'brand' field. * * brand: brand name. * Example: HomeAway * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder clearBrand() { brand = null; fieldSetFlags()[2] = false; return this; }
/** * Checks whether the 'brand' field has been set. * * brand: brand name. * Example: HomeAway * @return True if the 'brand' field has been set, false otherwise. */ public boolean hasBrand() { return fieldSetFlags()[2]; }
/** * Clears the value of the 'productId' field. * * ProductId * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.Tags.Builder clearProductId() { fieldSetFlags()[0] = false; 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; }