@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.FaceLocation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.FaceLocation other = (com.google.cloud.videointelligence.v1beta1.FaceLocation) obj; boolean result = true; result = result && (hasBoundingBox() == other.hasBoundingBox()); if (hasBoundingBox()) { result = result && getBoundingBox().equals(other.getBoundingBox()); } result = result && (getTimeOffset() == other.getTimeOffset()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.FaceLocation getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.FaceLocation other) { if (other == com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance()) return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } if (other.getTimeOffset() != 0L) { setTimeOffset(other.getTimeOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * * * <pre> * Bounding box in a frame. * </pre> * * <code>.google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;</code> */ public com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder getBoundingBoxOrBuilder() { return getBoundingBox(); }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.FaceLocation buildPartial() { com.google.cloud.videointelligence.v1beta1.FaceLocation result = new com.google.cloud.videointelligence.v1beta1.FaceLocation(this); if (boundingBoxBuilder_ == null) { result.boundingBox_ = boundingBox_; } else { result.boundingBox_ = boundingBoxBuilder_.build(); } result.timeOffset_ = timeOffset_; onBuilt(); return result; }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.FaceLocation build() { com.google.cloud.videointelligence.v1beta1.FaceLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingBox_ != null) { output.writeMessage(1, getBoundingBox()); } if (timeOffset_ != 0L) { output.writeInt64(2, timeOffset_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (boundingBox_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox()); } if (timeOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, timeOffset_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder addLocationsBuilder() { return getLocationsFieldBuilder() .addBuilder(com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance()); } /**
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder addLocationsBuilder( int index) { return getLocationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance()); } /**