/** * * * <pre> * A user-supplied resource id for this Product. If set, the server will * attempt to use this value as the resource id. If it is already in use, an * error is returned with code ALREADY_EXISTS. Must be at most 128 characters * long. It cannot contain the character `/`. * </pre> * * <code>string product_id = 3;</code> */ public Builder clearProductId() { productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); if (hasProduct()) { hash = (37 * hash) + PRODUCT_FIELD_NUMBER; hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER; hash = (53 * hash) + getProductId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateProductRequest)) { return super.equals(obj); } com.google.cloud.vision.v1.CreateProductRequest other = (com.google.cloud.vision.v1.CreateProductRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && (hasProduct() == other.hasProduct()); if (hasProduct()) { result = result && getProduct().equals(other.getProduct()); } result = result && getProductId().equals(other.getProductId()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.cloud.vision.v1.CreateProductRequest other) { if (other == com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (other.hasProduct()) { mergeProduct(other.getProduct()); } if (!other.getProductId().isEmpty()) { productId_ = other.productId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
Assert.assertEquals(productId, actualRequest.getProductId()); Assert.assertTrue( channelProvider.isHeaderSent(
/** * * * <pre> * A user-supplied resource id for this Product. If set, the server will * attempt to use this value as the resource id. If it is already in use, an * error is returned with code ALREADY_EXISTS. Must be at most 128 characters * long. It cannot contain the character `/`. * </pre> * * <code>string product_id = 3;</code> */ public Builder clearProductId() { productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); if (hasProduct()) { hash = (37 * hash) + PRODUCT_FIELD_NUMBER; hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER; hash = (53 * hash) + getProductId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateProductRequest)) { return super.equals(obj); } com.google.cloud.vision.v1.CreateProductRequest other = (com.google.cloud.vision.v1.CreateProductRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && (hasProduct() == other.hasProduct()); if (hasProduct()) { result = result && getProduct().equals(other.getProduct()); } result = result && getProductId().equals(other.getProductId()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.cloud.vision.v1.CreateProductRequest other) { if (other == com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (other.hasProduct()) { mergeProduct(other.getProduct()); } if (!other.getProductId().isEmpty()) { productId_ = other.productId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }