/** * <pre> * DT_RESOURCE * </pre> * * <code>repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;</code> */ public Builder setResourceHandleVal( int index, org.tensorflow.framework.ResourceHandleProto.Builder builderForValue) { if (resourceHandleValBuilder_ == null) { ensureResourceHandleValIsMutable(); resourceHandleVal_.set(index, builderForValue.build()); onChanged(); } else { resourceHandleValBuilder_.setMessage(index, builderForValue.build()); } 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; }
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 setMaybeTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } maybeTypeName_ = 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 setMaybeTypeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); maybeTypeName_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * DT_RESOURCE * </pre> * * <code>repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;</code> */ public Builder addResourceHandleVal( int index, org.tensorflow.framework.ResourceHandleProto.Builder builderForValue) { if (resourceHandleValBuilder_ == null) { ensureResourceHandleValIsMutable(); resourceHandleVal_.add(index, builderForValue.build()); onChanged(); } else { resourceHandleValBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * DT_RESOURCE * </pre> * * <code>repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;</code> */ public Builder setResourceHandleVal( int index, org.tensorflow.framework.ResourceHandleProto.Builder builderForValue) { if (resourceHandleValBuilder_ == null) { ensureResourceHandleValIsMutable(); resourceHandleVal_.set(index, builderForValue.build()); onChanged(); } else { resourceHandleValBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * DT_RESOURCE * </pre> * * <code>repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;</code> */ public Builder addResourceHandleVal( org.tensorflow.framework.ResourceHandleProto.Builder builderForValue) { if (resourceHandleValBuilder_ == null) { ensureResourceHandleValIsMutable(); resourceHandleVal_.add(builderForValue.build()); onChanged(); } else { resourceHandleValBuilder_.addMessage(builderForValue.build()); } 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> * Container in which this resource is placed. * </pre> * * <code>string container = 2;</code> */ public Builder setContainerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); 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> * Unique name of this resource. * </pre> * * <code>string name = 3;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = 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 setDeviceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); device_ = value; onChanged(); return this; }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ResourceHandleProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ResourceHandleProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * <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 clearHashCode() { hashCode_ = 0L; onChanged(); return this; }
public static Builder newBuilder(org.tensorflow.framework.ResourceHandleProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {