/** * <pre> * Unique name of this resource. * </pre> * * <code>string name = 3;</code> */ public Builder setNameBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * <pre> * Unique name for the device containing the resource. * </pre> * * <code>string device = 1;</code> */ public Builder setDeviceBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); device_ = value; onChanged(); return this; }
/** * <pre> * Unique name of this resource. * </pre> * * <code>string name = 3;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * <pre> * Hash code for the type of the resource. Is only valid in the same device * and in the same execution. * </pre> * * <code>uint64 hash_code = 4;</code> */ public Builder setHashCode(long value) { hashCode_ = value; onChanged(); return this; } /**
/** * <pre> * Hash code for the type of the resource. Is only valid in the same device * and in the same execution. * </pre> * * <code>uint64 hash_code = 4;</code> */ public Builder clearHashCode() { hashCode_ = 0L; onChanged(); return this; }
/** * <pre> * Unique name of this resource. * </pre> * * <code>string name = 3;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * Container in which this resource is placed. * </pre> * * <code>string container = 2;</code> */ public Builder clearContainer() { container_ = getDefaultInstance().getContainer(); onChanged(); return this; } /**
/** * <pre> * Unique name for the device containing the resource. * </pre> * * <code>string device = 1;</code> */ public Builder clearDevice() { device_ = getDefaultInstance().getDevice(); onChanged(); return this; } /**
public Builder mergeFrom(org.tensorflow.framework.ResourceHandleProto other) { if (other == org.tensorflow.framework.ResourceHandleProto.getDefaultInstance()) return this; if (!other.getDevice().isEmpty()) { device_ = other.device_; onChanged(); } if (!other.getContainer().isEmpty()) { container_ = other.container_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getHashCode() != 0L) { setHashCode(other.getHashCode()); } if (!other.getMaybeTypeName().isEmpty()) { maybeTypeName_ = other.maybeTypeName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * For debug-only, the name of the type pointed to by this handle, if * available. * </pre> * * <code>string maybe_type_name = 5;</code> */ public Builder setMaybeTypeNameBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); maybeTypeName_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * For debug-only, the name of the type pointed to by this handle, if * available. * </pre> * * <code>string maybe_type_name = 5;</code> */ public Builder setMaybeTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } maybeTypeName_ = value; onChanged(); return this; } /**
/** * <pre> * Container in which this resource is placed. * </pre> * * <code>string container = 2;</code> */ public Builder setContainerBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); container_ = value; onChanged(); return this; }
/** * <pre> * Container in which this resource is placed. * </pre> * * <code>string container = 2;</code> */ public Builder setContainer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } container_ = value; onChanged(); return this; } /**
/** * <pre> * Unique name for the device containing the resource. * </pre> * * <code>string device = 1;</code> */ public Builder setDevice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); return this; } /**
/** * <pre> * For debug-only, the name of the type pointed to by this handle, if * available. * </pre> * * <code>string maybe_type_name = 5;</code> */ public Builder clearMaybeTypeName() { maybeTypeName_ = getDefaultInstance().getMaybeTypeName(); onChanged(); return this; } /**
/** * <pre> * Hash code for the type of the resource. Is only valid in the same device * and in the same execution. * </pre> * * <code>uint64 hash_code = 4;</code> */ public Builder setHashCode(long value) { hashCode_ = value; onChanged(); return this; } /**
/** * <pre> * Hash code for the type of the resource. Is only valid in the same device * and in the same execution. * </pre> * * <code>uint64 hash_code = 4;</code> */ public Builder clearHashCode() { hashCode_ = 0L; onChanged(); return this; }
/** * <pre> * Container in which this resource is placed. * </pre> * * <code>string container = 2;</code> */ public Builder clearContainer() { container_ = getDefaultInstance().getContainer(); onChanged(); return this; } /**
/** * <pre> * Unique name of this resource. * </pre> * * <code>string name = 3;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * Unique name for the device containing the resource. * </pre> * * <code>string device = 1;</code> */ public Builder clearDevice() { device_ = getDefaultInstance().getDevice(); onChanged(); return this; } /**