/** * <code>repeated .tensorflow.AllocationDescription referenced_tensor = 11;</code> */ public Builder setReferencedTensor( int index, org.tensorflow.framework.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.set(index, builderForValue.build()); onChanged(); } else { referencedTensorBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
subBuilder.mergeFrom(allocationDescription_); allocationDescription_ = subBuilder.buildPartial();
public Builder mergeFrom(org.tensorflow.framework.AllocationDescription other) { if (other == org.tensorflow.framework.AllocationDescription.getDefaultInstance()) return this; if (other.getRequestedBytes() != 0L) { setRequestedBytes(other.getRequestedBytes()); } if (other.getAllocatedBytes() != 0L) { setAllocatedBytes(other.getAllocatedBytes()); } if (!other.getAllocatorName().isEmpty()) { allocatorName_ = other.allocatorName_; onChanged(); } if (other.getAllocationId() != 0L) { setAllocationId(other.getAllocationId()); } if (other.getHasSingleReference() != false) { setHasSingleReference(other.getHasSingleReference()); } if (other.getPtr() != 0L) { setPtr(other.getPtr()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
subBuilder.mergeFrom(allocationDescription_); allocationDescription_ = subBuilder.buildPartial();
public Builder mergeFrom(org.tensorflow.framework.AllocationDescription other) { if (other == org.tensorflow.framework.AllocationDescription.getDefaultInstance()) return this; if (other.getRequestedBytes() != 0L) { setRequestedBytes(other.getRequestedBytes()); } if (other.getAllocatedBytes() != 0L) { setAllocatedBytes(other.getAllocatedBytes()); } if (!other.getAllocatorName().isEmpty()) { allocatorName_ = other.allocatorName_; onChanged(); } if (other.getAllocationId() != 0L) { setAllocationId(other.getAllocationId()); } if (other.getHasSingleReference() != false) { setHasSingleReference(other.getHasSingleReference()); } if (other.getPtr() != 0L) { setPtr(other.getPtr()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * Information about the size and allocator used for the data * </pre> * * <code>.tensorflow.AllocationDescription allocation_description = 4;</code> */ public Builder mergeAllocationDescription(org.tensorflow.framework.AllocationDescription value) { if (allocationDescriptionBuilder_ == null) { if (allocationDescription_ != null) { allocationDescription_ = org.tensorflow.framework.AllocationDescription.newBuilder(allocationDescription_).mergeFrom(value).buildPartial(); } else { allocationDescription_ = value; } onChanged(); } else { allocationDescriptionBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Information about the size and allocator used for the data * </pre> * * <code>.tensorflow.AllocationDescription allocation_description = 4;</code> */ public Builder setAllocationDescription( org.tensorflow.framework.AllocationDescription.Builder builderForValue) { if (allocationDescriptionBuilder_ == null) { allocationDescription_ = builderForValue.build(); onChanged(); } else { allocationDescriptionBuilder_.setMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.AllocationDescription parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.AllocationDescription) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * Name of the allocator used * </pre> * * <code>string allocator_name = 3;</code> */ public Builder setAllocatorNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); allocatorName_ = value; onChanged(); return this; }
/** * <pre> * Name of the allocator used * </pre> * * <code>string allocator_name = 3;</code> */ public Builder setAllocatorName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } allocatorName_ = value; onChanged(); return this; } /**
/** * <code>repeated .tensorflow.AllocationDescription referenced_tensor = 11;</code> */ public Builder setReferencedTensor( int index, org.tensorflow.framework.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.set(index, builderForValue.build()); onChanged(); } else { referencedTensorBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.AllocationDescription referenced_tensor = 11;</code> */ public Builder addReferencedTensor( int index, org.tensorflow.framework.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.add(index, builderForValue.build()); onChanged(); } else { referencedTensorBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.AllocationDescription referenced_tensor = 11;</code> */ public Builder addReferencedTensor( org.tensorflow.framework.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.add(builderForValue.build()); onChanged(); } else { referencedTensorBuilder_.addMessage(builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * <pre> * Address of the allocation. * </pre> * * <code>uint64 ptr = 6;</code> */ public Builder setPtr(long value) { ptr_ = value; onChanged(); return this; } /**
/** * <pre> * Identifier of the allocated buffer if known * </pre> * * <code>int64 allocation_id = 4;</code> */ public Builder setAllocationId(long value) { allocationId_ = value; onChanged(); return this; } /**
/** * <pre> * Total number of bytes allocated if known * </pre> * * <code>int64 allocated_bytes = 2;</code> */ public Builder setAllocatedBytes(long value) { allocatedBytes_ = value; onChanged(); return this; } /**
/** * <pre> * Address of the allocation. * </pre> * * <code>uint64 ptr = 6;</code> */ public Builder clearPtr() { ptr_ = 0L; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Total number of bytes requested * </pre> * * <code>int64 requested_bytes = 1;</code> */ public Builder setRequestedBytes(long value) { requestedBytes_ = value; onChanged(); return this; } /**
public static Builder newBuilder(org.tensorflow.framework.AllocationDescription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {