@SuppressWarnings({"rawtypes"}) protected com.github.os72.protobuf351.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
public int getAttrCount() { return internalGetAttr().getMap().size(); } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public java.util.Map<java.lang.String, org.tensorflow.framework.AttrValue> getAttrMap() { return internalGetAttr().getMap(); } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public org.tensorflow.framework.AttrValue getAttrOrDefault( java.lang.String key, org.tensorflow.framework.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, org.tensorflow.framework.AttrValue> map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public org.tensorflow.framework.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, org.tensorflow.framework.AttrValue> map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
@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) + OP_FIELD_NUMBER; hash = (53 * hash) + getOp().hashCode(); if (getInputCount() > 0) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInputList().hashCode(); } hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); if (!internalGetAttr().getMap().isEmpty()) { hash = (37 * hash) + ATTR_FIELD_NUMBER; hash = (53 * hash) + internalGetAttr().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.NodeDef)) { return super.equals(obj); } org.tensorflow.framework.NodeDef other = (org.tensorflow.framework.NodeDef) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getOp() .equals(other.getOp()); result = result && getInputList() .equals(other.getInputList()); result = result && getDevice() .equals(other.getDevice()); result = result && internalGetAttr().equals( other.internalGetAttr()); result = result && unknownFields.equals(other.unknownFields); return result; }
: internalGetAttr().getMap().entrySet()) { com.github.os72.protobuf351.MapEntry<java.lang.String, org.tensorflow.framework.AttrValue> attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_); } if (!getOpBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, op_); } for (int i = 0; i < input_.size(); i++) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 3, input_.getRaw(i)); } if (!getDeviceBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 4, device_); } com.github.os72.protobuf351.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttr(), AttrDefaultEntryHolder.defaultEntry, 5); unknownFields.writeTo(output); }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
public int getAttrCount() { return internalGetAttr().getMap().size(); } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public java.util.Map<java.lang.String, org.tensorflow.framework.AttrValue> getAttrMap() { return internalGetAttr().getMap(); } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /**
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public org.tensorflow.framework.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, org.tensorflow.framework.AttrValue> map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * <pre> * Operation-specific graph-construction-time configuration. * Note that this should include all attrs defined in the * corresponding OpDef, including those with a value matching * the default -- this allows the default to change and makes * NodeDefs easier to interpret on their own. However, if * an attr with a default is not specified in this list, the * default will be used. * The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and * one of the names from the corresponding OpDef's attr field). * The values must have a type matching the corresponding OpDef * attr's type field. * TODO(josh11b): Add some examples here showing best practices. * </pre> * * <code>map<string, .tensorflow.AttrValue> attr = 5;</code> */ public org.tensorflow.framework.AttrValue getAttrOrDefault( java.lang.String key, org.tensorflow.framework.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, org.tensorflow.framework.AttrValue> map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getOpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, op_); } for (int i = 0; i < input_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, input_.getRaw(i)); } if (!getDeviceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, device_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttr(), AttrDefaultEntryHolder.defaultEntry, 5); unknownFields.writeTo(output); }
@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) + OP_FIELD_NUMBER; hash = (53 * hash) + getOp().hashCode(); if (getInputCount() > 0) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInputList().hashCode(); } hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); if (!internalGetAttr().getMap().isEmpty()) { hash = (37 * hash) + ATTR_FIELD_NUMBER; hash = (53 * hash) + internalGetAttr().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.NodeDef)) { return super.equals(obj); } org.tensorflow.framework.NodeDef other = (org.tensorflow.framework.NodeDef) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getOp() .equals(other.getOp()); result = result && getInputList() .equals(other.getInputList()); result = result && getDevice() .equals(other.getDevice()); result = result && internalGetAttr().equals( other.internalGetAttr()); result = result && unknownFields.equals(other.unknownFields); return result; }
: internalGetAttr().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, org.tensorflow.framework.AttrValue> attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()