@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.cloud.vision.v1.InputConfig buildPartial() { com.google.cloud.vision.v1.InputConfig result = new com.google.cloud.vision.v1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { result.gcsSource_ = gcsSourceBuilder_.build(); } result.mimeType_ = mimeType_; onBuilt(); return result; }
public Builder mergeFrom(com.google.cloud.vision.v1.InputConfig other) { if (other == com.google.cloud.vision.v1.InputConfig.getDefaultInstance()) return this; if (other.hasGcsSource()) { mergeGcsSource(other.getGcsSource()); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } if (!getMimeTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.InputConfig)) { return super.equals(obj); } com.google.cloud.vision.v1.InputConfig other = (com.google.cloud.vision.v1.InputConfig) obj; boolean result = true; result = result && (hasGcsSource() == other.hasGcsSource()); if (hasGcsSource()) { result = result && getGcsSource().equals(other.getGcsSource()); } result = result && getMimeType().equals(other.getMimeType()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * The type of the file. Currently only "application/pdf" and "image/tiff" * are supported. Wildcards are not supported. * </pre> * * <code>string mime_type = 2;</code> */ public Builder clearMimeType() { mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasGcsSource()) { hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGcsSource().hashCode(); } hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMimeType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public com.google.cloud.vision.v1.InputConfig getDefaultInstanceForType() { return com.google.cloud.vision.v1.InputConfig.getDefaultInstance(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInputConfig()) { hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getInputConfig().hashCode(); } if (getResponsesCount() > 0) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getResponsesList().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.AnnotateFileResponse)) { return super.equals(obj); } com.google.cloud.vision.v1.AnnotateFileResponse other = (com.google.cloud.vision.v1.AnnotateFileResponse) obj; boolean result = true; result = result && (hasInputConfig() == other.hasInputConfig()); if (hasInputConfig()) { result = result && getInputConfig().equals(other.getInputConfig()); } result = result && getResponsesList().equals(other.getResponsesList()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * The Google Cloud Storage location to read the input from. * </pre> * * <code>.google.cloud.vision.v1.GcsSource gcs_source = 1;</code> */ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { return getGcsSource(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasGcsSource()) { hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGcsSource().hashCode(); } hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMimeType().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.InputConfig)) { return super.equals(obj); } com.google.cloud.vision.v1.InputConfig other = (com.google.cloud.vision.v1.InputConfig) obj; boolean result = true; result = result && (hasGcsSource() == other.hasGcsSource()); if (hasGcsSource()) { result = result && getGcsSource().equals(other.getGcsSource()); } result = result && getMimeType().equals(other.getMimeType()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (gcsSource_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); } if (!getMimeTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * Required. Information about the input file. * </pre> * * <code>.google.cloud.vision.v1.InputConfig input_config = 1;</code> */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } /**
/** * * * <pre> * The type of the file. Currently only "application/pdf" and "image/tiff" * are supported. Wildcards are not supported. * </pre> * * <code>string mime_type = 2;</code> */ public Builder clearMimeType() { mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInputConfig()) { hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getInputConfig().hashCode(); } if (getFeaturesCount() > 0) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeaturesList().hashCode(); } if (hasImageContext()) { hash = (37 * hash) + IMAGE_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getImageContext().hashCode(); } if (hasOutputConfig()) { hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOutputConfig().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.AsyncAnnotateFileRequest)) { return super.equals(obj); } com.google.cloud.vision.v1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) obj; boolean result = true; result = result && (hasInputConfig() == other.hasInputConfig()); if (hasInputConfig()) { result = result && getInputConfig().equals(other.getInputConfig()); } result = result && getFeaturesList().equals(other.getFeaturesList()); result = result && (hasImageContext() == other.hasImageContext()); if (hasImageContext()) { result = result && getImageContext().equals(other.getImageContext()); } result = result && (hasOutputConfig() == other.hasOutputConfig()); if (hasOutputConfig()) { result = result && getOutputConfig().equals(other.getOutputConfig()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * The Google Cloud Storage location to read the input from. * </pre> * * <code>.google.cloud.vision.v1.GcsSource gcs_source = 1;</code> */ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { return getGcsSource(); }
public Builder mergeFrom(com.google.cloud.vision.v1.InputConfig other) { if (other == com.google.cloud.vision.v1.InputConfig.getDefaultInstance()) return this; if (other.hasGcsSource()) { mergeGcsSource(other.getGcsSource()); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }