/** * * * <pre> * If present, dominant colors completed successfully. * </pre> * * <code>.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;</code> */ public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { return getDominantColors(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dominantColors_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageProperties)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageProperties other = (com.google.cloud.vision.v1.ImageProperties) obj; boolean result = true; result = result && (hasDominantColors() == other.hasDominantColors()); if (hasDominantColors()) { result = result && getDominantColors().equals(other.getDominantColors()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDominantColors()) { hash = (37 * hash) + DOMINANT_COLORS_FIELD_NUMBER; hash = (53 * hash) + getDominantColors().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.vision.v1.ImageProperties other) { if (other == com.google.cloud.vision.v1.ImageProperties.getDefaultInstance()) return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * If present, dominant colors completed successfully. * </pre> * * <code>.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;</code> */ public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { return getDominantColors(); }
DominantColorsAnnotation colors = res.getImagePropertiesAnnotation().getDominantColors(); for (ColorInfo color : colors.getColorsList()) { out.printf(
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dominantColors_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } unknownFields.writeTo(output); }
DominantColorsAnnotation colors = res.getImagePropertiesAnnotation().getDominantColors(); for (ColorInfo color : colors.getColorsList()) { out.printf(
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageProperties)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageProperties other = (com.google.cloud.vision.v1.ImageProperties) obj; boolean result = true; result = result && (hasDominantColors() == other.hasDominantColors()); if (hasDominantColors()) { result = result && getDominantColors().equals(other.getDominantColors()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDominantColors()) { hash = (37 * hash) + DOMINANT_COLORS_FIELD_NUMBER; hash = (53 * hash) + getDominantColors().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.vision.v1.ImageProperties other) { if (other == com.google.cloud.vision.v1.ImageProperties.getDefaultInstance()) return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }