.setUpdated(String.valueOf(Calendar.getInstance().getTime())) .build(); Tags tags = Tags.newBuilder().setProductId(jsonTags.getProductId()) .setPortfolioId(jsonTags.getPortfolioId()) .setBrand(jsonTags.getBrand()) .setAssetProtectionLevel(jsonTags.getAssetProtectionLevel()) .setComponentId(jsonTags.getComponentId()) .setHint(jsonTags.getHint()) .build();
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); } } }
record.githubUrl = fieldSetFlags()[7] ? this.githubUrl : (java.lang.String) defaultValue(fields()[7]); if (tagsBuilder != null) { record.tags = this.tagsBuilder.build(); } else { record.tags = fieldSetFlags()[8] ? this.tags : (com.homeaway.digitalplatform.streamregistry.Tags) defaultValue(fields()[8]);
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;
/** * 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; }
/** * 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; }
/** * 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]; }