/** * <code>string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * <code>bytes data = 4;</code> */ public Builder setData(com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /**
/** * <code>repeated int64 shape = 3;</code> */ public Builder clearShape() { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; }
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo other) { if (other == org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getNodeId() != 0) { setNodeId(other.getNodeId()); } if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } if (other.getData() != com.github.os72.protobuf351.ByteString.EMPTY) { setData(other.getData()); } if (other.dtype_ != 0) { setDtypeValue(other.getDtypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>string name = 1;</code> */ public Builder setNameBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * <code>.tensorflow.DataType dtype = 5;</code> */ public Builder setDtypeValue(int value) { dtype_ = value; onChanged(); return this; } /**
/** * <code>.tensorflow.DataType dtype = 5;</code> */ public Builder setDtype(org.tensorflow.framework.DataType value) { if (value == null) { throw new NullPointerException(); } dtype_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>bytes data = 4;</code> */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; }
/** * <code>int32 node_id = 2;</code> */ public Builder clearNodeId() { nodeId_ = 0; onChanged(); return this; }
/** * <code>.tensorflow.DataType dtype = 5;</code> */ public Builder clearDtype() { dtype_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>repeated int64 shape = 3;</code> */ public Builder addAllShape( java.lang.Iterable<? extends java.lang.Long> values) { ensureShapeIsMutable(); com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); return this; } /**
/** * <code>repeated int64 shape = 3;</code> */ public Builder addShape(long value) { ensureShapeIsMutable(); shape_.add(value); onChanged(); return this; } /**
/** * <code>int32 node_id = 2;</code> */ public Builder setNodeId(int value) { nodeId_ = value; onChanged(); return this; } /**
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>repeated int64 shape = 3;</code> */ public Builder setShape( int index, long value) { ensureShapeIsMutable(); shape_.set(index, value); onChanged(); return this; } /**