public org.tensorflow.framework.FunctionDefLibrary buildPartial() { org.tensorflow.framework.FunctionDefLibrary result = new org.tensorflow.framework.FunctionDefLibrary(this); int from_bitField0_ = bitField0_; if (functionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { function_ = java.util.Collections.unmodifiableList(function_); bitField0_ = (bitField0_ & ~0x00000001); } result.function_ = function_; } else { result.function_ = functionBuilder_.build(); } if (gradientBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { gradient_ = java.util.Collections.unmodifiableList(gradient_); bitField0_ = (bitField0_ & ~0x00000002); } result.gradient_ = gradient_; } else { result.gradient_ = gradientBuilder_.build(); } onBuilt(); return result; }
public org.tensorflow.framework.FunctionDefLibrary getDefaultInstanceForType() { return org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFunctionCount() > 0) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunctionList().hashCode(); } if (getGradientCount() > 0) { hash = (37 * hash) + GRADIENT_FIELD_NUMBER; hash = (53 * hash) + getGradientList().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 org.tensorflow.framework.FunctionDefLibrary)) { return super.equals(obj); } org.tensorflow.framework.FunctionDefLibrary other = (org.tensorflow.framework.FunctionDefLibrary) obj; boolean result = true; result = result && getFunctionList() .equals(other.getFunctionList()); result = result && getGradientList() .equals(other.getGradientList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public org.tensorflow.framework.FunctionDefLibrary build() { org.tensorflow.framework.FunctionDefLibrary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } if (hasVersions()) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersions().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasLibrary()) { hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().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 org.tensorflow.framework.GraphDef)) { return super.equals(obj); } org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && (hasVersions() == other.hasVersions()); if (hasVersions()) { result = result && getVersions() .equals(other.getVersions()); } result = result && (getVersion() == other.getVersion()); result = result && (hasLibrary() == other.hasLibrary()); if (hasLibrary()) { result = result && getLibrary() .equals(other.getLibrary()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.FunctionDefLibrary)) { return super.equals(obj); } org.tensorflow.framework.FunctionDefLibrary other = (org.tensorflow.framework.FunctionDefLibrary) obj; boolean result = true; result = result && getFunctionList() .equals(other.getFunctionList()); result = result && getGradientList() .equals(other.getGradientList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public org.tensorflow.framework.FunctionDefLibrary build() { org.tensorflow.framework.FunctionDefLibrary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } if (hasVersions()) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersions().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasLibrary()) { hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().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 org.tensorflow.framework.GraphDef)) { return super.equals(obj); } org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && (hasVersions() == other.hasVersions()); if (hasVersions()) { result = result && getVersions() .equals(other.getVersions()); } result = result && (getVersion() == other.getVersion()); result = result && (hasLibrary() == other.hasLibrary()); if (hasLibrary()) { result = result && getLibrary() .equals(other.getLibrary()); } 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 (getFunctionCount() > 0) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunctionList().hashCode(); } if (getGradientCount() > 0) { hash = (37 * hash) + GRADIENT_FIELD_NUMBER; hash = (53 * hash) + getGradientList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
return library_ == null ? org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance() : library_;
public org.tensorflow.framework.FunctionDefLibrary buildPartial() { org.tensorflow.framework.FunctionDefLibrary result = new org.tensorflow.framework.FunctionDefLibrary(this); int from_bitField0_ = bitField0_; if (functionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { function_ = java.util.Collections.unmodifiableList(function_); bitField0_ = (bitField0_ & ~0x00000001); } result.function_ = function_; } else { result.function_ = functionBuilder_.build(); } if (gradientBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { gradient_ = java.util.Collections.unmodifiableList(gradient_); bitField0_ = (bitField0_ & ~0x00000002); } result.gradient_ = gradient_; } else { result.gradient_ = gradientBuilder_.build(); } onBuilt(); return result; }
} else { return library_ == null ? org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance() : library_;
return library_ == null ? org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance() : library_; } else { return libraryBuilder_.getMessage();
public Builder mergeFrom(org.tensorflow.framework.FunctionDefLibrary other) { if (other == org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance()) return this; if (functionBuilder_ == null) { if (!other.function_.isEmpty()) {
public org.tensorflow.framework.FunctionDefLibrary getDefaultInstanceForType() { return org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance(); }
return library_ == null ? org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance() : library_;
return library_ == null ? org.tensorflow.framework.FunctionDefLibrary.getDefaultInstance() : library_; } else { return libraryBuilder_.getMessage();