public Builder mergeFrom(org.tensorflow.framework.ApiDef.Arg other) { if (other == org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; hash = (53 * hash) + getRenameTo().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().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.ApiDef.Arg)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Arg other = (org.tensorflow.framework.ApiDef.Arg) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRenameTo() .equals(other.getRenameTo()); result = result && getDescription() .equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.tensorflow.framework.ApiDef.Arg other) { if (other == org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * Note: this will replace any inherited arg doc. There is no * current way of modifying arg descriptions (other than replacing * them entirely) as can be done with op descriptions. * </pre> * * <code>string description = 3;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * <pre> * Change the name used to access this arg in the API from what * is used in the GraphDef. Note that these names in `backticks` * will also be replaced in the summary & description fields. * </pre> * * <code>string rename_to = 2;</code> */ public Builder clearRenameTo() { renameTo_ = getDefaultInstance().getRenameTo(); onChanged(); return this; } /**
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getRenameToBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; hash = (53 * hash) + getRenameTo().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.tensorflow.framework.ApiDef.Arg getDefaultInstanceForType() { return org.tensorflow.framework.ApiDef.Arg.getDefaultInstance(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getRenameToBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } unknownFields.writeTo(output); }
/** * <code>repeated .tensorflow.ApiDef.Arg in_arg = 4;</code> */ public org.tensorflow.framework.ApiDef.Arg.Builder addInArgBuilder() { return getInArgFieldBuilder().addBuilder( org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /**
/** * <code>repeated .tensorflow.ApiDef.Arg out_arg = 5;</code> */ public org.tensorflow.framework.ApiDef.Arg.Builder addOutArgBuilder( int index) { return getOutArgFieldBuilder().addBuilder( index, org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /**
/** * <code>repeated .tensorflow.ApiDef.Arg out_arg = 5;</code> */ public org.tensorflow.framework.ApiDef.Arg.Builder addOutArgBuilder() { return getOutArgFieldBuilder().addBuilder( org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /**
/** * <code>repeated .tensorflow.ApiDef.Arg in_arg = 4;</code> */ public org.tensorflow.framework.ApiDef.Arg.Builder addInArgBuilder( int index) { return getInArgFieldBuilder().addBuilder( index, org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /**
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public org.tensorflow.framework.ApiDef.Arg build() { org.tensorflow.framework.ApiDef.Arg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.ApiDef.Arg buildPartial() { org.tensorflow.framework.ApiDef.Arg result = new org.tensorflow.framework.ApiDef.Arg(this); result.name_ = name_; result.renameTo_ = renameTo_; result.description_ = description_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef.Arg)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Arg other = (org.tensorflow.framework.ApiDef.Arg) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRenameTo() .equals(other.getRenameTo()); result = result && getDescription() .equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_); } if (!getRenameToBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, renameTo_); } if (!getDescriptionBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(3, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public org.tensorflow.framework.ApiDef.Arg getDefaultInstanceForType() { return org.tensorflow.framework.ApiDef.Arg.getDefaultInstance(); }